Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Quotes not being passed in defined symbol values?
Quotes not being passed in defined symbol values? [message #233043] Fri, 17 April 2009 01:29
Eclipse UserFriend
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
Previous Topic:setting up indexer
Next Topic:Make file editor is not working if I bundle cdt5.0.2
Goto Forum:
  


Current Time: Mon Jul 28 14:43:45 EDT 2025

Powered by FUDForum. Page generated in 0.06793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top