Re: [OT] Compiling with wxWindows
On Sun, May 04, 2003 at 05:50:57AM +0200, Roberto Sanchez wrote:
> g++ -g hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
>
> I have been using gcc/g++ for a few months now, but for the life of me I can't
> figure out what `wx-config --libs` means and what `wx-config --cxxflags` means.
The backticks (`command`) mean run the command and substitute its
output. wx-config is a script included with wxWindows which supplies the
necessary flags for linking and compiling. Run wx-config on the command
line to see how it works. Several other libraries include similar
scripts.
--
Michael Heironimus
Reply to: