[wxMac 2.8.4] Got my code to compile, but not link
Stephan Rose
kermos at somrek.net
Thu Jun 21 15:03:58 PDT 2007
On Thu, 2007-06-21 at 14:57 -0700, David Goldsmith wrote:
> OK, my code is compiling, but not linking; the errors I'm getting are
> Undefined symbols: wxOnAssert, wxDirExists, wxMessageBox, etc., etc. So
> obviously (?) I haven't told it the right wx libraries to link against
> and/or the right places to look for those libraries. I found a bunch of
> my wx libraries in /usr/local/lib/ and grep-ed to find which had
> wxMessageBox (as a representative example) got libwx_macu_core-2.8.a
> among the results, and hoped that including this with
> -l/usr/local/lib/libwx_macu_core-2.8.a would suffice, but no, I get
> /usr/bin/ld: can't locate file for:
> -l/usr/local/lib/libwx_macu_core-2.8.a despite:
>
> $ ls /usr/local/lib/libwx_macu_core-2.8.a
> /usr/local/lib/libwx_macu_core-2.8.a
>
> Help?
>
> DG
Try this:
-L/usr/local/lib -lwx_macu_core-2.8
Yes I left off "lib" and ".a", those are not typos. =)
the -L/usr/local/lib should probably not be needed as it should already
be part of the default search path.
Stephan Rose
More information about the wx-users
mailing list