| CDT strange behaviour [message #226811] |
Sat, 15 November 2008 08:18  |
Eclipse User |
|
|
|
Hello.
I did only simple search on .cproject keyword, and didn't come up with
anything. Pardon for such a long post.
Trying to work with Ganymede + CDT, linux (GTK2)
in the Software Updates & Addons it is written:
Eclipse C/C++ Development Tools, version: 5.0.0.200806171202.
eclipse is installed in the user's home dir under:
~/local/eclipse (where all eclipse files are)
It is invoked by this script:
========= start dump ==============
#!/bin/sh
export ANT_HOME=/usr/share/ant
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JRE_HOME=${JAVA_HOME}/jre
CMD=${HOME}/local/eclipse/eclipse
CMD_OPTS="-jvm ${JAVA_HOME}/bin/javaw"
${CMD} ${CMD_OPTS}
========= end dump ==============
I also have a dir ~/.eclipse
listing:
org.eclipse.platform_3.2.0/
org.eclipse.sdk.ide/
(this is probably the remains of previous installations)
The workspace I've created from scratch sev. times.
I then add a static C library project to it, let's name it "mylib".
and have only 2 default configurations: Debug, Release.
The next stage is - creating additional configurations, let's call them:
Debug-T1
Debug-T2
Release-T1
Release-T2
all these are created with the GUI, Configurations Manager, the Debug* are
created by copying from Debug, and adding some defintions in the -D area.
The Release* are created correspondingly.
I also then add a C++ project, which uses the library, let's call it
"myapp" project.
It uses the "mylib", references it, and uses it's library binaries for
linkage.
I also create several configurations for it:
Debug
Debug-T1
Debug-T2
Release
Release-T1
Release-T2
When working with all this setup, and life seems GOOD!
Then I am closing eclipse and then getting back to it.
What I see is:
1. the projects' configurations different from the default "Debug" and
"Release" get dumped, disappear from configurations listings.
2. the corresponding folders from the C/C++ project explorer somehow get
UNDER the default configuration, e.g.:
Debug-T1,Debug-T2 folders suddenly occur inside the folder of Debug
The same happens in Release.
3. All the Environmental variables I created manually do not exist.
Is it possible i am doing something wrong ?
Is it a known issue ?
|
|
|
| Re: CDT strange behaviour [message #226819 is a reply to message #226811] |
Sat, 15 November 2008 09:12  |
Eclipse User |
|
|
|
hmm, I found the "configuration broken" thread
I guess I've found what I was looking for - I too added configurations via
the project's configuration manager.
And I too pressed "Apply" button.
The thing is the configurations DO exist inside the .cproject file,
it's just for some reason they do not work and cannot be used in the CDT
GUI.
Regards!
|
|
|
Powered by
FUDForum. Page generated in 0.03791 seconds