Quotes not being passed in defined symbol values? [message #233043] |
Fri, 17 April 2009 01:29 |
Eclipse User |
|
|
|
Hi,
Using Eclipse 3.4.1, with CDT 5.0.1.200809120802 (latest updates applied).
My C based application normally uses autotools, and a Makefile generated
from that toolchain. In this instance though, I'm trying to set things
up using the internal managed build process, to (hopefully) make my
debugging process using Eclipse more efficient.
Eclipse is filtering out quotes (string delimiters) from the values I'm
defining though, breaking my compile process.
For example, with the autotools generated config.h, we have things like:
#define PACKAGE_VERSION "0.8.0-alpha5"
and:
-DFONT_OUTLINE_DIR="/opt/salasaga/share/salasaga/font_outline/ "
I'm trying to put these values into the project definition, such that
they get picked up and used. I have tried using them as:
+ Defined symbols (-D)
+ Build Variables
+ Environment variables (defined inside the project)
.... both individually, and as combinations.
However, the get to the compiler without the quotes. Like this:
#define PACKAGE_VERSION 0.8.0-alpha5
and/or:
-DFONT_OUTLINE_DIR=/opt/salasaga/share/salasaga/font_outline /
This then completely breaks the code using those values, which needs a
proper C string in those instances.
Naturally I've tried escaping things (\", "", \\", \\"", ', \', \\',
''), etc, but nothing seems to work.
What to do?
Regards and best wishes,
Justin Clift
|
|
|
Powered by
FUDForum. Page generated in 0.06793 seconds