[MacOS10.4.10, wxMac2.8, gcc 4.0.1] Resuscitating an old thread:
"Automating" the use of wx-config
Riccardo Cohen
rcohen at articque.com
Fri Sep 14 01:32:34 PDT 2007
it seems that the resulting config used gcc instead of g++, I couldn't
say why
David Goldsmith wrote:
> Matt Connolly wrote:
>> Actually, to fully make use of the "wx-config" command you can do:
>>
>> For compiling:
>>
>> `wx-config --cc` `wx-config --cppflags` <my_flags> <source_files> ...
>>
>> For linking:
>>
>> `wx-config --ld` `wx-config --libs` <my_flags> <object_files> ...
>>
>> -matt
> Hi, folks! Haven't used this method in a while and I don't remember if
> I had the same problem last time I did. The above implies to me that
> `wx-config --cc` `wx-config --cppflags` <my_flags> <source_files> will
> stop after compiling, i.e., not proceed on to linking, but that is not
> what I'm observing:
>
> dg$ `wx-config --cc` `wx-config --cppflags` -Wno-deprecated -I
> ../../../Source/CompCore *cpp ../../../Source/CompCore/*.cpp
> /usr/bin/ld: Undefined symbols:
> __Unwind_Resume
> wxThread::TestDestroy()
> wxThread::~wxThread()
> typeinfo for wxThread
> vtable for __cxxabiv1::__si_class_type_info
> operator delete(void*)
> operator new(unsigned long)
> ___gxx_personality_v0
> wxStringBase::npos
> wxStringBase::InitWith(char const*, unsigned long, unsigned long)
> wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)
> vtable for __cxxabiv1::__class_type_info
> ___cxa_begin_catch
> ___cxa_end_catch
> operator new[](unsigned long)
> _dgbtrf_
> _dgbtrs_
> collect2: ld returned 1 exit status
>
> i.e., `wx-config --cc` `wx-config --cppflags` <my_flags> <source_files>
> is proceeding on to linking - am I just misinterpreting "For compiling:"?
>
> Second Q: why am I getting the (wx) linking errors?
>
> DG
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
--
Très cordialement,
Riccardo Cohen
ligne directe : 02-47-49-63-24
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
More information about the wx-users
mailing list