User forums > General (but related to Code::Blocks)
Backtick won't expand
yop:
How can this happen:
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -I- -I. -I/home/yop/Workbench/codeblocks/trunk/src/sdk -I/home/yop/Workbench/codeblocks/trunk/src/sdk/tinyxml -I/home/yop/Workbench/codeblocks/trunk/src/sdk/wxscintilla/include -Isrc -I/usr/include -c src/qtworkbench.cpp -o objs/src/qtworkbench.o
src/qtworkbench.cpp:13:27: wx/xrc/xmlres.h: No such file or directory
...and all shorts of wx[whatever]: No such file or directory
I have copy pasted the project build options from Code::Blocks project where backticking wx-config --cflags works fine in the project's compiler options, but I can't make it work with my project. If I manually add to my compiler options what wx-config --cflags outputs then I can build without any problems. The most bizzare thing is that wx-config --libs backtick works fine :?
mandrav:
Linux or windows?
yop:
Linux (I thought backticks and wx-config didn't work on widows but I'm not much of a windows user so I might have misunderstood).
takeshimiya:
--- Quote from: yop on February 12, 2006, 07:52:28 pm ---Linux (I thought backticks and wx-config didn't work on widows but I'm not much of a windows user so I might have misunderstood).
--- End quote ---
Backticks works on C::B on windows (from some SVN revs ago). Not a native thing of course, but doesn't requieres cygwin or anything :D).
High likely that wx-config will work only on cygwin, but you can make a little batch file replacing the functionality of the bourne shell script if you don't want cygwin only for that.
Of course, on linux you don't need to do anything. :D
yop:
--- Quote from: Takeshi Miya on February 13, 2006, 02:33:56 pm ---Of course, on linux you don't need to do anything. :D
--- End quote ---
Yeap that's what I also thought but as you can see I'm having this problem on linux oddly enough
Navigation
[0] Message Index
[#] Next page
Go to full version