User forums > Using Code::Blocks

#define'd strings (when compiling with g++)

<< < (2/3) > >>

Ceniza:
My guess is that it's caused by those \". Remove the backslash and try again.

johne53:
Thanks for the suggestion Ceniza but that was one of the 4 options that I originally tried. It produced Error 71 (in this case, - "libsndfile" undeclared).

I'm wondering if C::B actually sends something extra to the compiler that isn't showing up in my build log?

Ceniza:
OK, then add another backslash: \\"

johne53:
Okay - I'll give that a try....

[Edit...] Interestingly, that does actually work but it gives me errors if I try to run the same command from a terminal window (i.e. the opposite way round from before). I'd like to understand what's going on here. Could anyone explain it to me?

thomas:
If I understand correctly what you want, add to the #defines tab: MODULE="\"$PROJECTNAME\""

This will define MODULE as the project's name enclosed in quotes. New project, new name,... different output.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version