User forums > General (but related to Code::Blocks)
Backtick won't expand
takeshimiya:
--- Quote from: yop on February 13, 2006, 04:23:10 pm ---
--- 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
--- End quote ---
Are you sure it's a backticks problem, and not a Environmental Variable problem? (wx-config not finding paths when running from C::B?)
thomas:
I only just saw that there is no error regarding wx-config at all, but it is about a generated header file. So maybe the problem is not about running wx-config?
Have you checked whether that file is really not created at all (i.e. wx-config does not run or does not run properly), or maybe it is created, just not where the compiler expects it?
Have you tried the "explicitely add currently compiling dir" compiler option? It is a dim hope, but hey, it doesn't cost to try it ;)
yop:
--- Quote from: Takeshi Miya on February 13, 2006, 04:26:32 pm ---Are you sure it's a backticks problem, and not a Environmental Variable problem? (wx-config not finding paths when running from C::B?)
--- End quote ---
--- Quote from: thomas on February 13, 2006, 04:40:26 pm ---I only just saw that there is no error regarding wx-config at all, but it is about a generated header file. So maybe the problem is not about running wx-config?
Have you checked whether that file is really not created at all (i.e. wx-config does not run or does not run properly), or maybe it is created, just not where the compiler expects it?
--- End quote ---
But adding manually the wx-config --cflags output manually to the compilers options (using cb project options dialog) eliminates all of my problems. The exact project that I'm having problems with is this one. In the project from that link I've taken out the manually added options and just left the `wx-config -cflags` thingy in the compiler options. wx/xrc/xmlres.h is a generated file? I'll look into this as I didn't even think of this one.
--- Quote from: thomas on February 13, 2006, 04:40:26 pm ---Have you tried the "explicitely add currently compiling dir" compiler option? It is a dim hope, but hey, it doesn't cost to try it ;)
--- End quote ---
No but I've added it to the compiler directories so it's the same thing.
I know that there is absolutely no possibility that backticks don't work (you use them in the cb project and I can compile it without any problems and in my project wx-widgets --libs works fine) but I just can't find out what I am doing wrong :?
mandrav:
I finally found the reason for this.
It's because of some PCH settings. Until I fix this once and for all, go to "Project->Properties" and select the first option for PCH mode.
I hope this isn't inconvenient for you...
yop:
Not at all, thank you :)
Navigation
[0] Message Index
[*] Previous page
Go to full version