Linking issues

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Linking issues

Postby xlnunez » Tue Jun 12, 2012 10:04 pm

Hi I'm trying to run Tutorial_101 (debug) using a svn revision (Jun 6th) on VS 2008. I'm getting some linker issues and I'm just wondering if anybody has an idea of how to remedy this situation. :| Thanks

Code: Select all
1>------ Build started: Project: Tutorial_101_GettingStarted, Configuration: Debug Win32 ------
1>Performing Pre-Build Event...
1>C:\Users\trunk\coreLibrary_200\source\sdk\x32\lib_vs9_md\dJointLibrary_d.dll -> C:\Users\trunk\applications\NewtonTutorials\bin\x32\dJointLibrary_d.dll
1>1 File(s) copied
1>Linking...
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetSolverModel referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetWorldSize referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetPlatformArchitecture referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetMemorySystem referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function "void __cdecl ShutDown(void)" (?ShutDown@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroyAllBodies referenced in function "void __cdecl ShutDown(void)" (?ShutDown@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonUpdate referenced in function "void __cdecl AdvanceSimulation(int)" (?AdvanceSimulation@@YAXH@Z)
1>x32\Debug/Tutorial_101_GettingStarted.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://c:\Users\trunk\applications\NewtonTutorials\Tutorial_101_GettingStarted\x32\Debug\BuildLog.htm"
1>Tutorial_101_GettingStarted - 9 error(s), 0 warning(s)
xlnunez
 
Posts: 7
Joined: Tue Jun 12, 2012 9:23 pm

Re: Linking issues

Postby xlnunez » Wed Jun 13, 2012 12:39 pm

Nevermind, I was able to fix this issue by linking to the library of newton.lib, and for the later tutorials I linked to the dJointLibrary.lib. If anyone had the same issue as I did, go into the properties of the tutorial folder --> Linker --> General --> Additional Library Directories, from here add the directories of newton.lib and dJointLibrary.lib.

Then click on input and add the names 'dJointLibrary.lib' and 'newton.lib' to "Additional dependencies"

Hopefully if anybody was stuck like I was this should help :D
xlnunez
 
Posts: 7
Joined: Tue Jun 12, 2012 9:23 pm

Re: Linking issues

Postby Julio Jerez » Wed Jun 13, 2012 12:58 pm

are you using newton core 300?

I will try to bring the all tutorials uptodate this weekend.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Linking issues

Postby xlnunez » Mon Jun 18, 2012 1:59 pm

No I was using core 200 in Newton 2.3.5
xlnunez
 
Posts: 7
Joined: Tue Jun 12, 2012 9:23 pm

Re: Linking issues

Postby Julio Jerez » Mon Jun 18, 2012 4:35 pm

use core 300.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron