Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Strange compiler error

Strange compiler error

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi, I got this strange compiler error here is the source line

    for (i=MAX_DECIMAL_DIGITS-1, j=MAX_DECIMAL_DIGITS-1-effective_addr2;
    i >= 0; i--, j--)

    The solution/project project compiles cleanly in a different directory where the other source files are different but the source file is the same thanks

    L J 2 Replies Last reply
    0
    • F ForNow

      Hi, I got this strange compiler error here is the source line

      for (i=MAX_DECIMAL_DIGITS-1, j=MAX_DECIMAL_DIGITS-1-effective_addr2;
      i >= 0; i--, j--)

      The solution/project project compiles cleanly in a different directory where the other source files are different but the source file is the same thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      That error message is a bit confusing. It mentions a source line at first, but then shows an error in the linker.

      F 1 Reply Last reply
      0
      • L Lost User

        That error message is a bit confusing. It mentions a source line at first, but then shows an error in the linker.

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        I was able to generate a "debug" version of the code and it seems to run as fast I guess I have to look at my properties and see if any entry is incorrect I look at the linker section Thanks so much

        1 Reply Last reply
        0
        • F ForNow

          Hi, I got this strange compiler error here is the source line

          for (i=MAX_DECIMAL_DIGITS-1, j=MAX_DECIMAL_DIGITS-1-effective_addr2;
          i >= 0; i--, j--)

          The solution/project project compiles cleanly in a different directory where the other source files are different but the source file is the same thanks

          J Offline
          J Offline
          Jochen Arndt
          wrote on last edited by
          #4

          I had such compiler errors in the past with older VC versions.

          Quote:

          To work around this problem, try simplifying or changing the program near the locations listed above.

          I always solved the problem following the above. There was one case where it could be solved by just exchanging two lines of code. In the other cases, I re-ordered some code or moved code to an additional function. I don't remember if I had the linker error afterwards too. But it is obviously sourced by the compiler error (the compiler exits immediately when that error occurs).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups