Jump to content
  • Advertisement
Sign in to follow this  
turyturbo

Error while compile (VS C++ 2008)

This topic is 2992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi: I was trying to set up OpenGL libraries in my VS C++ 2008 then do the lesson 01 (Nehe). I followed the instructions for setup. Then I tried to compile one file. Since the glauxReplacement.cpp is incomplete, I used bmp.cpp/bmp.h from one of those threads and put bmp.h in header folder, bmp.cpp in source folder. Replaced the <h\glaux.h> with "bmp.h" Then I got this error: MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup I tried some modifications what some threads suggested. Project->Properties->System->SubSystem = Windows(...)options Then I got this error: 1>c:\users\<name>\documents\visual studio 2008\projects\practices\practices\bmp.cpp(56) : error C2664: 'LoadImageW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast I did this: Project->Properties->General->Character Set = Use Multi-Byte Character Set Then I got this error AGAIN: 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 1>C:\Users\<name>\Documents\Visual Studio 2008\Projects\Practices\Debug\Practices.exe : fatal error LNK1120: 1 unresolved externals The error kept loop. What is the solution? Thank you, TT

Share this post


Link to post
Share on other sites
Advertisement

This topic is 2992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!