f



Undefined symbols compiling wx2.6.3 samples/minimal app on Mac OS X 10.4

Hello

I successfully built WX2.6.3 on my Mac running OSX 10.4 I used this 
build to successfully build wxRuby (which appears to run fine).

However, today I felt like trying WX using C/C++ and stumbled across
http://www.wxwidgets.org/wiki/index.php/Mac_OS_X_And_Xcode_For_Beginners

Since I already had WX itself built I followed only the part of "SPECIAL 
INSTRUCTIONS FOR OSX 10.4/XCODE 2.4/wxWidgets 2.6.3" for compiling 
samples/minimal (including adding the given Info.plist).

I needed to replace the reference to library wx_mac (which did not 
exist) with -lwx_mac_adv-2.6 -lwx_mac_core-2.6 -lwx_mac_html-2.6 
-lwx_mac_media-2.6 -lwx_mac_qa-2.6 -lwx_mac_xrc-2.6
-lwx_base_carbon-2.6 -lwx_base_carbon_net-2.6 -lwx_base_carbon_xml-2.6

However, the build fails due to the following symbols being undefined
__Z8wxAssertiPKciS0_S0_
__ZN12wxAppConsole8OnAssertEPKciS1_S1_

I'm guessing that these would correspond to the functions wxAssert() & 
AppConsole::OnAssert() but am not sure why they should be undefined.

Can anyone tell me whether this is likely to be a problem with my 
install or is there something missing from the minimal app?

thanks

Dave

Full compiler output below:

Building target "dynamic" of project "minimal" � (1 error, 3 warnings)
cd /Volumes/local/packages
/wxWidgets-2.6.3/samples/minimal
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/g++-3.3 -o
/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/build/minimal.build/Development/dynamic.build/Objects-normal/ppc/minimalDynamic
-L/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/build/Development
-L/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Development
-L/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Deployment
-L/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../../../lib
-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/3.3
-F/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/build/Development
-filelist 
/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/build/minimal.build/Development/dynamic.build/Objects-normal/ppc/minimalDynamic.LinkFileList
-framework Carbon -framework System -framework AGL -framework IOKit
-framework OpenGL -framework WebKit -lwx_mac_adv-2.6 -lwx_mac_core-2.6
-lwx_mac_html-2.6 -lwx_mac_media-2.6 -lwx_mac_qa-2.6 -lwx_mac_xrc-2.6
-lwx_base_carbon-2.6 -lwx_base_carbon_net-2.6 -lwx_base_carbon_xml-2.6
-arch ppc -prebind -mmacosx-version-min=10.3 -liconv -lz
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
ld: warning -L: directory name
(/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Development)
does not exist
ld: warning -L: directory name
(/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Deployment)
does not exist
ld: warning prebinding disabled because dependent library:
/Developer/SDKs/MacOSX10.4u.sdk/Volumes/local/lib/libwx_mac_adv-2.6.0.dylib
is not prebound
ld: Undefined symbols:
__Z8wxAssertiPKciS0_S0_
__ZN12wxAppConsole8OnAssertEPKciS1_S1_
ld: warning -L: directory name
(/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Development)
does not exist
ld: warning -L: directory name
(/Volumes/local/packages/wxWidgets-2.6.3/samples/minimal/../../src/build/Deployment)
does not exist
ld: warning prebinding disabled because dependent library:
/Developer/SDKs/MacOSX10.4u.sdk/Volumes/local/lib/libwx_mac_adv-2.6.0.dylib
is not prebound
ld: Undefined symbols:
__Z8wxAssertiPKciS0_S0_
__ZN12wxAppConsole8OnAssertEPKciS1_S1_
Build failed (1 error, 3 warnings)


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
listrec
9/17/2006 7:16:45 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

0 Replies
372 Views

Similar Articles

[PageSpeed] 23

Reply: