Author Topic: Help - Error when compile source code under VC2008  (Read 1862 times)

sihan

  • Guest
Help - Error when compile source code under VC2008
« on: 7 April 2008, 10:11:54 »
I compile glest source code just follow this article:

"Compiling on Win32 using no-cost tools (MSVC++ 2008 Express)"
http://www.glest.org/glest_board/viewto ... ghlight=vc

But some error occur when I biuld it:

Code: [Select]
1>------ Build started: Project: libglest, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>camera.cpp
1>checksum.cpp
1>context.cpp
1>context_gl.cpp
1>c:\projects\glest\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>conversion.cpp
1>factory_repository.cpp
1>c:\projects\glest\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory


My OS: Windows XP

I don't know how to deal with it, please help me, thinks!
« Last Edit: 1 January 1970, 00:00:00 by sihan »

daniel.santos

  • Guest
(No subject)
« Reply #1 on: 8 April 2008, 23:59:23 »
Did you download http://glest.codemonger.org/files/win32-glest-deps.rar?  I'm pretty sure that file's in there.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

sihan

  • Guest
(No subject)
« Reply #2 on: 9 April 2008, 11:45:23 »
Quote from: "daniel.santos"
Did you download http://glest.codemonger.org/files/win32-glest-deps.rar?  I'm pretty sure that file's in there.


Yes, I download it. But I can not find this file when it search root dir "deps".

Now, I download OpenGL195.exe, and use it's glu.h, but now I get this msg:

Code: [Select]
1>------ Build started: Project: game, Configuration: Debug Win32 ------
1>Linking...
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>../../build/Debug/game\game.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\Projects\glest\glest\build\Debug\game\BuildLog.htm"
1>game - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


Why?
« Last Edit: 1 January 1970, 00:00:00 by sihan »

orion

  • Guest
(No subject)
« Reply #3 on: 9 April 2008, 18:51:04 »
Did you put "#include windows.h" before any of the other OpenGl libraries? For Example:

#include windows.h  //the windows header file comes first
#include glu.h
#include glut.h
...

PS: I'm not strong in C++ yet(I'm a noob) and that's the only thing I could think of.
« Last Edit: 1 January 1970, 00:00:00 by orion »