Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem while defining a symbol in project properties
Problem while defining a symbol in project properties [message #197739] Thu, 19 July 2007 05:41 Go to next message
Eclipse UserFriend
Originally posted by: vbagga.versant.com

Hi,

I have a large C project which has a common code base so there are a lot
of #define's used to distinguish between different platforms. One of the
#defines is _WIN32. Now the CDT does not define this by default, it
defines __WIN32 (Two underscores). So I would like to define this symbol
in the project properties so that the indexer is able to index properly.

When I try to define this, I face weird issues. Sometimes I am able to
define this and sometimes not. I have some other defines as well. But
when I change the sequence of adding these symbols of these defines
_WIN32 gets added to the list but when I change the sequence in some
other way, it does not work. I am not able to figure out what the heck
is going on .. I am 100% sure that _WIN32 is not defined because the
code is not grayed out in my editor.

Any ideas are welcome !

I am using CDT 4.0 with Eclipse 3.3 in Windows and have a Makefile
project and I do not use automatic symbol discovery.

Thanks,
- Vishal
Re: Problem while defining a symbol in project properties [message #198010 is a reply to message #197739] Mon, 23 July 2007 12:26 Go to previous message
Eclipse UserFriend
Originally posted by: vbagga.versant.com

Hi Guys,

Any ideas about this ? This is a really annoying problem and I would
appreciate any hints on what could be going wrong ..

- Vishal

Vishal Bagga wrote, On 7/19/2007 11:11 AM:
> Hi,
>
> I have a large C project which has a common code base so there are a lot
> of #define's used to distinguish between different platforms. One of the
> #defines is _WIN32. Now the CDT does not define this by default, it
> defines __WIN32 (Two underscores). So I would like to define this symbol
> in the project properties so that the indexer is able to index properly.
>
> When I try to define this, I face weird issues. Sometimes I am able to
> define this and sometimes not. I have some other defines as well. But
> when I change the sequence of adding these symbols of these defines
> _WIN32 gets added to the list but when I change the sequence in some
> other way, it does not work. I am not able to figure out what the heck
> is going on .. I am 100% sure that _WIN32 is not defined because the
> code is not grayed out in my editor.
>
> Any ideas are welcome !
>
> I am using CDT 4.0 with Eclipse 3.3 in Windows and have a Makefile
> project and I do not use automatic symbol discovery.
>
> Thanks,
> - Vishal
Previous Topic:CDT4: unmanaged make C++ project via wizard?
Next Topic:Error launching external scanner info generator
Goto Forum:
  


Current Time: Thu Dec 26 20:03:03 GMT 2024

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

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

Back to the top