Author Topic: Weird compile error  (Read 2281 times)

lordmono

  • Guest
Weird compile error
« on: 27 February 2008, 00:42:16 »
Can anyone help with this?

I followed all the steps in the how-to....

I am using MS VS 2008. I try to compile and this happens...
This happens during the build solution near the end.

Code: [Select]
'.\type_instances\effect.cpp': No such file or directory
'.\types\effect_type.cpp': No such file or directory
 '.\types\unit_stats_base.cpp': No such file or directory
'..\..\build\Debug\game\effect.sbr': No such file or directory BSCMAKE game


libglest compiles fine. But when it comes to the game, these files appear to be missing?

Any help would be great! Thanks!
« Last Edit: 1 January 1970, 00:00:00 by lordmono »

Beowulf

  • Guest
(No subject)
« Reply #1 on: 29 February 2008, 05:34:51 »
I got similar errors when I compiled it.  I can't remember how I solved them.  I just had to tinker with VC a ton and make sure that I had the right directories and such.  I believe I started over once out of frustration.  

Just keep tinkering with things.  I'm sorry I can't solve the problem, but I can encourage you.  *pat pat*
« Last Edit: 1 January 1970, 00:00:00 by Beowulf »

Gannon

  • Guest
(No subject)
« Reply #2 on: 29 February 2008, 11:21:51 »
The problem is caused by the project file for the game project.
If you download the project files from the guide on this forum by daniel.santos, you might encounter this problem, because those project files expect to see the source files you mentioned.

However, these files aren't part of glest (anymore at least), so you either need to manually remove those entries in the game.vcproj file through fx. notepad, or do the full tutorial mentioned above, and skip step 2a.
« Last Edit: 1 January 1970, 00:00:00 by Gannon »

lordmono

  • Guest
(No subject)
« Reply #3 on: 29 February 2008, 15:55:48 »
Thanks soo much guys!

I will give that a try and get back to you.


Again, thanks for responding! =)
« Last Edit: 1 January 1970, 00:00:00 by lordmono »

lordmono

  • Guest
(No subject)
« Reply #4 on: 29 February 2008, 21:19:43 »
Well i did what you  suggested and now I get this....

Code: [Select]
Error   98   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   99   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   100   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   101   error LNK2019: unresolved external symbol __imp__gluErrorString referenced in function "void __cdecl Shared::Graphics::Gl::_assertGl(char const *,int)" (?_assertGl@Gl@Graphics@Shared@@YAXPBDH@Z)   renderer.obj   game
Error   102   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   103   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   104   error LNK2001: unresolved external symbol __imp__gluErrorString   libglest.lib   game
Error   105   error LNK2019: unresolved external symbol __imp__gluDeleteQuadric referenced in function "public: void __thiscall Glest::Game::Renderer::renderMouse3d(void)" (?renderMouse3d@Renderer@Game@Glest@@QAEXXZ)   renderer.obj   game
Error   106   error LNK2019: unresolved external symbol __imp__gluCylinder referenced in function "public: void __thiscall Glest::Game::Renderer::renderMouse3d(void)" (?renderMouse3d@Renderer@Game@Glest@@QAEXXZ)   renderer.obj   game
Error   107   error LNK2019: unresolved external symbol __imp__gluQuadricDrawStyle referenced in function "public: void __thiscall Glest::Game::Renderer::renderMouse3d(void)" (?renderMouse3d@Renderer@Game@Glest@@QAEXXZ)   renderer.obj   game
Error   108   error LNK2019: unresolved external symbol __imp__gluNewQuadric referenced in function "public: void __thiscall Glest::Game::Renderer::renderMouse3d(void)" (?renderMouse3d@Renderer@Game@Glest@@QAEXXZ)   renderer.obj   game
Error   109   error LNK2019: unresolved external symbol __imp__gluPerspective referenced in function "public: bool __thiscall Glest::Game::Renderer::computePosition(class Shared::Graphics::Vec2<int> const &,class Shared::Graphics::Vec2<int> &)" (?computePosition@Renderer@Game@Glest@@QAE_NABV?$Vec2@H@Graphics@Shared@@AAV456@@Z)   renderer.obj   game
Error   110   error LNK2019: unresolved external symbol __imp__gluPickMatrix referenced in function "public: bool __thiscall Glest::Game::Renderer::computePosition(class Shared::Graphics::Vec2<int> const &,class Shared::Graphics::Vec2<int> &)" (?computePosition@Renderer@Game@Glest@@QAE_NABV?$Vec2@H@Graphics@Shared@@AAV456@@Z)   renderer.obj   game
Error   111   error LNK2019: unresolved external symbol __imp__gluBuild1DMipmaps referenced in function "public: virtual void __thiscall Shared::Graphics::Gl::Texture1DGl::init(enum Shared::Graphics::Texture::Filter,int)" (?init@Texture1DGl@Gl@Graphics@Shared@@UAEXW4Filter@Texture@34@H@Z)   libglest.lib   game
Error   112   error LNK2019: unresolved external symbol __imp__gluBuild2DMipmaps referenced in function "public: virtual void __thiscall Shared::Graphics::Gl::Texture2DGl::init(enum Shared::Graphics::Texture::Filter,int)" (?init@Texture2DGl@Gl@Graphics@Shared@@UAEXW4Filter@Texture@34@H@Z)   libglest.lib   game
Error   113   error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup   MSVCRTD.lib   game


Any ideas? Did I mess up again? hahah.
« Last Edit: 1 January 1970, 00:00:00 by lordmono »

daniel.santos

  • Guest
(No subject)
« Reply #5 on: 1 March 2008, 03:32:35 »
hehe, well you've obviously made progress.  I thought I replied to this thread earlier, but then again, I goofed on my original reply anyway.

It looks like you forgot to include opengl.lib in your additional libraries setting for both the shared_lib (libglest) and game projects.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

 

anything