[wxMac 2.8.4] Got my code to compile, but not link

David Goldsmith David.L.Goldsmith at noaa.gov
Thu Jun 21 15:09:24 PDT 2007


Stephan Rose wrote:
> 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
>
>   
Nope.  Tried it both ways, i.e., w/ and w/out  the -L/usr/local/lib.

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

-- 
ERD/ORR/NOS/NOAA <http://response.restoration.noaa.gov/emergencyresponse/>




More information about the wx-users mailing list