[C++-sig] trouble linking with wxWidgets

Jake Skinner jake at zarloc.com
Thu Jun 9 02:26:32 CEST 2005


Hello,

I am trying to do an extension. I'm using python 2.4, wxWidgets 2.6,
boost 1.32 and vc.net. I can't seem to get to get wxWidgets to link (I
have built it as one big dll). I am building it in the
libs/python/example directory

this is my jamfile
---------------------------
project-root ;
import python ;

extension pyROSS
: pyROSS.cpp
: <include>c:/wxDockit/include
  <include>c:/wxWidgets-src-2.6.0.0/include
  <include>c:/data/RossClient
  <include>c:/wxWidgets-src-2.6.0.0/lib/vc_dll/mswd
  <dll>boost_python_debug
  <dll>wxmswd26d_vc
  <library-path>c:/boost_1_32_0/libs/python/build/bin-stage
  <library-path>c:/wxWidgets-src-2.6.0.0/lib/vc_dll
  <find-library>boost_python_debug
  <find-library>wxmsw26d
  <template>@boost/libs/python/build/extension
  ;
-------------------------------------
below i have included the link error:


pyROSS.obj : error LNK2019: unresolved external symbol "class
Application & __cdecl wxGetApp(void)" (?wxGetApp@@YAAAVApplicat
ion@@XZ) referenced in function "public: __thiscall `anonymous
namespace'::pyROSS::pyROSS(void)" (??0pyROSS@?A0xba7fa9fe@@QAE
@XZ)
bin\example\pyROSS.pyd\vc-7_1\debug\threading-multi\pyROSS.pyd : fatal
error LNK1120: 1 unresolved externals

    CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT" >nul
    "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\link" 
/nologo /INCREMENTAL:NO  /DEBUG /DLL /subsystem:consol
e  
/out:"bin\example\pyROSS.pyd\vc-7_1\debug\threading-multi\pyROSS.pyd" 
/IMPLIB:"bin\example\pyROSS.pyd\vc-7_1\debug\threa
ding-multi\pyROSS.lib" 
/LIBPATH:"c:\boost_1_32_0\libs\python\build\bin-stage"
/LIBPATH:"c:\wxWidgets-src-2.6.0.0\lib\vc_dll"
/LIBPATH:"c:\Python-2.4.1\libs" /LIBPATH:"c:\Python-2.4.1\PCbuild"  
"boost_python_debug.lib" "wxmsw26d.lib" "python24.lib"
@"bin\example\pyROSS.pyd\vc-7_1\debug\threading-multi\pyROSS.CMD"


I build it with 'bjam.exe -sTOOLS=vc-7_1 -a'

It looks like it is linking to the wxmsw26d.lib, I think the problem is
my lack of experience with bjam.

jake
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pyROSS.cpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20050609/3149f6ba/attachment.txt>


More information about the Cplusplus-sig mailing list