Skip to main content
gamedev.net
🔒 Locked

Boost Python - unresolved externals in bjam

Started by FoxMulder900 1 reply 1.4k views
Original Post
FoxMulder900
FoxMulder900
Hello, I am currently working on a project using OGRE and Navi GUI. I am trying to expose a few of my classes to python so i can do some scripting. I was able to get boost and bjam set up with little problems. However when I try to run bjam on my project to expose the classes, I get 2 unresolved external symbols. I know they are both related to the Navi library but I have both the .libs and headers included. Here are my project settings in my Jamroot file: project : requirements <library>/boost/python//boost_python <library>"C:/OgreSDK/lib/OgreMain.lib" <library>"C:/OgreSDK/lib/OIS.lib" <library>"C:/OgreSDK/lib/EditableTerrainManager.lib" <library>"C:/Libs/Navi 1.61/Dependencies/win32/astral/lib/Astral.lib" <library>"C:/Libs/Navi 1.61/Navi/Lib/Navi.lib" <library>"C:/Documents and Settings/New user/Desktop/YEI3D/trunk/YEI3Dv2/releaselib/YEI3D.lib" <library>"C:/Libs/audiere-1.9.4-win32/lib/audiere.lib" <library>"C:/Libs/tinyxml/lib/tinyxml.lib" <library>"C:/Libs/Hydrax-v0.3/Hydrax/bin/release/Hydrax.lib" <library>"C:/Libs/PagedGeometry/lib/PagedGeometry.lib" <library>"C:/Libs/Caelum/trunk/Caelum/lib/release/caelum.lib" <library-path>"C:/OgreSDK/lib" <library-path>"C:/Program Files/boost/boost_1_35_0/lib" <library-path>"C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Lib" <include>"C:/Documents and Settings/New user/Desktop/YEI3D/trunk/YEI3Dv2/headers" <include>"C:/OgreSDK/include" <include>"C:/Libs/Navi 1.61/Navi/Include" <include>"C:/Libs/Navi 1.61/Dependencies/win32/astral/include" <include>"C:/Libs/etm-2.2/include" <include>"C:/Libs/Caelum/trunk/Caelum/main/include" <include>"C:/Libs/audiere-1.9.4-win32/include" <include>"C:/Libs/PagedGeometry/include" <include>"C:/Libs/Hydrax-v0.3/Hydrax/src/Hydrax" ; and Here are my errors when i try to run bjam: Navi.lib(NaviMouse.obj) : error LNK2001: unresolved external symbol __imp__ShowCursor@4 Astral.lib(BrowserWindowImpl.obj) : error LNK2001: unresolved external symbol __imp__GetParent@4 bin\msvc-8.0express\debug\threading-multi\pyYEI3D.pyd : fatal error LNK1120: 2 unresolved externals I am using the MSVC compiler, any suggestions would be greatly appreciated!
niteice
niteice
You also need to link against user32.lib.

Also, for future reference, headers mean nothing to link errors.
FoxMulder900
FoxMulder900
Thank you very much that is exactly what i was missing!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.