[SOLVED]Error compiling NGD 1.53 samples in VC++2005?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

[SOLVED]Error compiling NGD 1.53 samples in VC++2005?

Postby biablo » Mon Mar 02, 2009 12:21 pm

I opened Tutorials.dsw in VC++2005 with Platform SDK for Windows XP SP2 installed.
I added opengl32.lib glu32.lib in link tab already.
It compiles good but when finally linking , it says ">dSceneNode.obj : error LNK2019: unresolved external symbol _glPopMatrix referenced in function "public: virtual void __thiscall dSceneNode::Render(void)const " (?Render@dSceneNode@@UBEXXZ)"

There are 42 unresolved external symbol error like that in tutorial 1.

When compiled with verbose option it shows

1> Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\opengl32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\glu32.lib:
1> Found _gluPerspective@32
1> Referenced in OpenGlUtil.obj
1> Loaded glu32.lib(GLU32.dll)
1> Found _gluBuild2DMipmaps@28
...


Yes, it seems that compiler can't find symbol _glPopMatrix from opengl32.lib.

I searched for solution then I found message from Julio Jerez

Re: Newton and Visual studio 2005
by Julio Jerez » Mon Oct 06, 2008 8:05 am

to work with VS 2005 you needto use the 2003 project and libraries.

MS did not make VS2008 backwork compatible with VS2005, you can run executable if you install the redistribution but you can no develeop. This was MS choice for reasons that I do not undernstand.

BU if you use teh 2003 libraires tehy are compaitble with 2003, 2005, and 2008, in fact teh 2003 libraries even work with GCC. 2003 was the best version of VS and 2005 probably the worse.
Julio Jerez
Moderator


Posts: 1188
Joined: Mon Sep 15, 2003 3:18 am
Location: Los Angeles


I don't have VC++2003. Is it natural that I can't compile and link samples with VC++2005?

If so I need tutorials.sln ,etc for VC++2003 to use with VC++2005. Help me please.
Last edited by biablo on Wed Mar 04, 2009 1:53 am, edited 1 time in total.
biablo
 
Posts: 4
Joined: Thu Jan 22, 2009 8:11 am

Re: Error compiling NGD 1.53 samples in VC++2005?

Postby Julio Jerez » Mon Mar 02, 2009 12:58 pm

Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Error compiling NGD 1.53 samples in VC++2005?

Postby biablo » Tue Mar 03, 2009 8:59 pm

I checked very carefully compile process. Then I found that objs are linking not with platform sdk for windows xp sp2 but with default platform sdk in my system. Though default platform sdk has all opengl32 glu23 gul32 .h/.lib it showed "unresolved external symbol errors".
So I arranged this problem by resetting VC++ directories in option tab.
I wasted over 10 hours to solve the problem. Compiler problem sometimes makes me hopeless. It's horrible.
I don't know why default platform sdk makes errors like that but now I can reproduce the errors and I can fix it. So now I have self--confidence about opengl link problems.
And I found that VC++2005 some times shows unreproducible anomalism like failure in writing manifest files with broken error message character, showing vacant projects when openning solution in recent projects menu. So I decided to install service pack for VC++. Who knows if there are undocumented errors?
biablo
 
Posts: 4
Joined: Thu Jan 22, 2009 8:11 am

Re: Error compiling NGD 1.53 samples in VC++2005?

Postby Julio Jerez » Tue Mar 03, 2009 9:12 pm

Like I said you will do a lot of good yourslef by using this
viewtopic.php?f=9&t=4922

instead of the old 1.53
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Error compiling NGD 1.53 samples in VC++2005?

Postby biablo » Tue Mar 03, 2009 10:33 pm

yes, I will try NGD 2.0 now.
biablo
 
Posts: 4
Joined: Thu Jan 22, 2009 8:11 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 27 guests

cron