Sign in to follow this  

Error while compile (VS C++ 2008)

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
This topic is now closed to further replies.
Sign in to follow this