Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » cdt project properties
cdt project properties [message #212485] Mon, 24 March 2008 15:53 Go to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
I'm wondering if there is a way to edit project properties for more than 1
CDT project. Example: I have the same cdt environment variable defined in
multiple cdt projects and they have the same value. When I want to change
the value of the variable do I need to visit each project properties?

Thanks, Karen
Re: cdt project properties [message #212611 is a reply to message #212485] Tue, 25 March 2008 15:43 Go to previous messageGo to next message
Tracy Miranda is currently offline Tracy MirandaFriend
Messages: 16
Registered: July 2009
Junior Member
CDT environment variables can be set and changed globally from
Window->Preferences->C/C++->Environment page.

Tracy

"Karen Ensing" <kensing@ca.ibm.com> wrote in message
news:60090487f9a64cabb5f5b94a07ca24d7$1@www.eclipse.org...
> I'm wondering if there is a way to edit project properties for more than 1
> CDT project. Example: I have the same cdt environment variable defined in
> multiple cdt projects and they have the same value. When I want to change
> the value of the variable do I need to visit each project properties?
>
> Thanks, Karen
>
>
Re: cdt project properties [message #212658 is a reply to message #212485] Wed, 26 March 2008 02:38 Go to previous messageGo to next message
Justin Clift is currently offline Justin CliftFriend
Messages: 16
Registered: July 2009
Junior Member
Karen Ensing wrote:
> I'm wondering if there is a way to edit project properties for more than
> 1 CDT project. Example: I have the same cdt environment variable
> defined in multiple cdt projects and they have the same value. When I
> want to change the value of the variable do I need to visit each project
> properties?

Hi Karen,

If you find a good way of doing this, I'd be really interested to hear.

So far, if I want the same values in multiple project, I need to shut
down eclipse then cut-n-paste the relevant lines from the .cproject
files directly. Some Gnome apps are a special pain for this, with 20+
source directories, 20+ libraries to include, etc.

Not especially hard, but just time consuming and kinda stress inducing.
Needs a lot of care to avoid getting things a little bit wrong and
breaking the projects. ;>

Regards and best wishes,

Justin Clift


> Thanks, Karen


--
Salasaga - Open Source eLearning IDE
http://www.salasaga.org
Re: cdt project properties [message #212721 is a reply to message #212611] Wed, 26 March 2008 13:20 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
I created an environment variable for a CDT project. But it is not
visible in the preferences (Window->Preferences->C/C++->Environment page).
Is it suppose to be there?

Thanks, Karen
Re: cdt project properties [message #212729 is a reply to message #212721] Wed, 26 March 2008 13:45 Go to previous message
Tracy Miranda is currently offline Tracy MirandaFriend
Messages: 16
Registered: July 2009
Junior Member
There are two places you can create environment variables for CDT projects.

The first is on the Preference page (Window->Preferences->C/C++->Environment
page) - if you create the variables here, they are global to all projects in
the workspace.
The second is on a specific project's Properties page (Properties->C/C++
Build->Environment) - if you create the variable here, it is only accessible
to that project (saved in a .settings file under the project)

If you create an environment variable on the preference page, you can use it
with any project (and it also shows up on all individual projects properties
pages). As you are looking to share variables, you should make sure you
create them in the preference page. Hope this helps.

Cheers,
Tracy

"Karen Ensing" <kensing@ca.ibm.com> wrote in message
news:66367e17cd2f1c09c917614988e41d19$1@www.eclipse.org...
>I created an environment variable for a CDT project. But it is not visible
>in the preferences (Window->Preferences->C/C++->Environment page). Is it
>suppose to be there?
>
> Thanks, Karen
>
>
Previous Topic:Eclipse forgets loaded editor files
Next Topic:Indexer feedback
Goto Forum:
  


Current Time: Fri Dec 27 07:51:56 GMT 2024

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

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

Back to the top