Boost-Python unresolved external error with Navi Library


18-07-2008 16:33:20

This question is not directly about Python-Ogre, but very related so i am hoping someone in the community can help.
I am currently working on a project using OGRE and Navi GUI(which i know was wrapped for Python-Ogre). 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:

: requirements <library>/boost/python//boost_python
<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-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:/Libs/Navi 1.61/Navi/Include"
<include>"C:/Libs/Navi 1.61/Dependencies/win32/astral/include"

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!


18-07-2008 21:09:52

A user in another forum was able to help me out, all that I was missing was I needed to link user32.lib as well