Menu

Error while compiling in VC 7.0

Help
2003-10-14
2003-10-15
  • Nobody/Anonymous

    Hi,

       I was able to generate the 3 pairs of source files from the ansi-C grammar o.  But when I created a Win32 Console project in VC 7.0 and tried to build it, I got the following errors:

      "fatal error: c1189: No implementation for hash_map provided for this platoform, please replace this line with an appropriate one."

       If I add the __GNUC__ precompiler header, I get a whole lot of other error message not to mention dozens of warnings. 

       So, my question is for those folks who are able to compile OK under VC 7.0, what did you do?

       Thanks.

    - pfhmks0

     
    • Alec Panovici

      Alec Panovici - 2003-10-15

      Hi,

      That's just a problem with that particular example. I am using a hash_map for the symbol table. I haven't used VC in ages, but i am guessing there is some equivalent (hash_map was an SGI extension to the STL, so no wonder it doesn't exist on MSVC).

      Anyway, the guilty lines are part of the 'user code' in that example, the code cppcc itself generates should compile fine.

      Hope this clarifies matters a bit,
      Alec.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.