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

Matt Connolly matt at soundevolution.com.au
Tue Jun 26 22:27:51 PDT 2007


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
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2174 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070627/6ea40c6c/smime.bin


More information about the wx-users mailing list