Something wrong with my installation?
Martin Jørgensen
hotmail_spam at hotmail.com
Mon Nov 13 07:37:29 PST 2006
Vadim Zeitlin wrote:
> On Mon, 13 Nov 2006 01:11:11 +0100 Martin Jørgensen <hotmail_spam at hotmail.com> wrote:
Hi Vadim,
> MJ> Here's my output:
> MJ>
> MJ> apple:~/Desktop/temp mac$ g++ test.o -o hello `wx-config --libs`
> MJ> /usr/bin/ld: Undefined symbols:
> MJ> typeinfo for wxListBase
> MJ> typeinfo for wxApp
> MJ> typeinfo for wxFrame
> MJ> typeinfo for wxThread
> MJ> collect2: ld returned 1 exit status
>
> What does "wx-config --libs" output? Is wx-config you use the right one?
$ wx-config --libs
-framework QuickTime -framework IOKit -framework Carbon
-framework Cocoa -framework System -lwx_macud-2.5
Perhaps it's the wrong wx-config:
$ which wx-config
/usr/bin/wx-config
> Remember that there is wx-config in /usr/bin under OS X (installed there by
> Apple), is this the one you want to use? I strongly recommend against it as
> it's a really old version (2.5.3) and you'd be much better off compiling
> 2.8.0 yourself.
I don't think I want to use that old version. That's why I compiled
version 2.6.3. But I don't see any version 2.8.0 from
http://www.wxwidgets.org/downloads/ ? I got 2.6.3 because it said it was
the latest stable release...
> MJ> I don't think I have g++ 3.3 or something like that installed, so it
> MJ> seems like I'm stuck again...
>
> If you do want to use the system version, you must use the same compiler
> which was used to build it, i.e. Panther version of g++ which is indeed
> 3.3. So if you "g++ -dumpversion" doesn't show 3.3 (and you don't have
> g++-3.3) installed you have no choice but to rebuild your own wx version
> from sources.
I thought I already did that. Aha... There's another wx-config file in
directory osx-build:
apple:~/wxMac-2.6.3/osx-build mac$ ./wx-config --libs
-L/Users/mac/wxMac-2.6.3/osx-build/lib -framework QuickTime -framework
IOKit -framework Carbon -framework Cocoa -framework System
-lwx_mac_xrc-2.6 -lwx_mac_qa-2.6 -lwx_mac_html-2.6 -lwx_mac_adv-2.6
-lwx_mac_core-2.6 -lwx_base_carbon_xml-2.6 -lwx_base_carbon_net-2.6
-lwx_base_carbon-2.6
Is it safe to remove/delete /usr/bin/wx-config and make a symbolic link
to ~/wxMac-2.6.3/osx-build/wx-config ?
----
BTW: You're completely right... This works:
apple:~/Desktop/temp mac$ g++ test.cpp
`~/wxMac-2.6.3/osx-build/wx-config --libs`
`~/wxMac-2.6.3/osx-build/wx-config --cxxflags` -o hworld
Best regards
Martin Jørgensen
--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
More information about the wx-users
mailing list