Results 1 to 5 of 5

Thread: Any Ideas what might cause this Problem with MS VC++ compiler

  1. #1
    Member Contributor
    Join Date
    Apr 2002
    Location
    brooklyn, ny
    Posts
    65

    Any Ideas what might cause this Problem with MS VC++ compiler

    Ok I compile my .cpp files and execute the main.cpp, everything works perfectly... THen when I go to compile my main.cpp file again after creating .exe, I get those errors :

    Compiling...
    main.cpp
    d:\microsoft visual studio\vc98\include\nb30.h(97) : error C2059: syntax error : 'string'
    d:\microsoft visual studio\vc98\include\nb30.h(97) : error C2238: unexpected token(s) preceding ';'
    d:\microsoft visual studio\vc98\include\winsock.h(714) : error C2143: syntax error : missing ')' before 'string'
    d:\microsoft visual studio\vc98\include\winsock.h(714) : error C2143: syntax error : missing ';' before 'string'
    d:\microsoft visual studio\vc98\include\winsock.h(714) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.

    Camera.exe - 5 error(s), 0 warning(s)

    Any Ideas what is wrong ??? I never had those problems before.. I am using VC++ 6.0 .. I also got the update patch for it..

    The only solution for this right now, that I know, is to Delete all files that were created after compile, and Compile all .cpp's again.....

  2. #2
    Junior Member Newbie
    Join Date
    May 2002
    Location
    Kanpur,U.P.,India
    Posts
    2

    Re: Any Ideas what might cause this Problem with MS VC++ compiler

    http://nehe.gamedev.net/tutorials/lesson.asp?l=01

    go to the link and add libraries written there....
    Sandeep Pathak,
    IIT Kanpur,
    India

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Any Ideas what might cause this Problem with MS VC++ compiler

    That's weird. Do you have using namespace std in your main.cpp? Other than that the only suggestion I'd have is to try do a build->clean.
    Deiussum
    Software Engineer and OpenGL enthusiast

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: Any Ideas what might cause this Problem with MS VC++ compiler

    Funny. I guess the compiler is just choking on something. Are you using templates or anything else possibly 'too complicated'?
    Maybe, in this is just a maybe as I haven't seen anything like this yet, your problem goes away if you turn off precompiled headers or incremental linking or minimum rebuild. Or a combination

  5. #5
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Any Ideas what might cause this Problem with MS VC++ compiler

    Hi !

    The minimum rebuild option can be tricky, and may cause this kind of weird problems, I have noticed some pretty odd behavior when used with lots of templates for example.

    The good thing is that Microsoft has added even more odd behavior to the new Visual Studio.NET....

    Mikael

Similar Threads

  1. A GLSL compiler problem?
    By george_azure in forum OpenGL: GLSL
    Replies: 6
    Last Post: 05-20-2011, 01:51 AM
  2. font problem, and im out of ideas....
    By jameswh in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 11-26-2008, 08:34 AM
  3. Is there a problem in my VC++ compiler?
    By ehsan2004 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-28-2005, 01:12 AM
  4. VC++ Compiler Problem!!!
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-31-2004, 05:07 PM
  5. Compiler problem - Please Help
    By Vasilis in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 10-23-2000, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean