[MacOS10.4.9, wxMac2.8.4, gcc 4.0.1] "Automating" the use of wx-config

David Goldsmith David.L.Goldsmith at noaa.gov
Wed Jun 27 07:22:31 PDT 2007


Excellent, thanks!

DG

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
>
>
> On 27/06/2007, at 7:50 AM, Robin Dunn wrote:
>
>> David Goldsmith wrote:
>>> Hi!  Short of: a) using make (which I intend to learn when I'm under 
>>> a little less deadline pressure) and/or b) using it in a shell 
>>> script (ditto), is there a convenient way to pass to gcc the output 
>>> of the wx-config command, i.e., something like gcc <wx-config 
>>> output> <my flags> <source files>?
>>
>> If you're using the bash shell or a similar shell then you just put 
>> the command to execute inside backticks, like this:
>>
>>     gcc `wx-config --cxxflags` <my flags> <source files>
>>
>> There's something similar for cshell but it's been over a decade 
>> since I've used it so I have no clue what it was.
>>
>> --Robin Dunn
>> Software Craftsman
>> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>>
>>
>> ---------------------------------------------------------------------
>> 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