old project (Ganymede) open with eclipse Neon [message #1751575] |
Wed, 11 January 2017 15:48 |
Regis SEB Messages: 3 Registered: January 2017 |
Junior Member |
|
|
Hi all,
I open an old c project made with Ganymede (CDT 5.0.0) with an eclipse Neon (CDT 9.2.0). I try this for lots of reasons, but especially because I want to use GIT, and it's not available on eclipse 3.4...
In both case, I use the same GCC version (4.1.1) .
I'm on Windows 7, 64 bit.
When I open for the first the project with eclipse neon, it say that the "workspace was written with an older version... Are you sure you want to continue..." I click on Ok, that seem legit.
Everythink seem ok (I compare every project properties with the old eclipse), it compile, but the executable is not the same.
For quality control reason (it's a project for my compagny), I can't just say "it's not the same executable, but i swear, it work like before..."
The makefile generated (automatically made by eclipse) is very similare between Ganymede and Neon exepted the include directory order!
Just for test, I disable "Properties->C/C++ Build->Build Settings -> Makefile generation->Generate Makefiles automatically", edit the makefile to have the same include directory order, like the makefile in the old project, I compile and the executable match!
With the "generate Makefiles automatically" activate, I try to change the
"Properties-> C/C++ Build->Settings->Tool Settings->Include->include paths" orders, but nothing change on the makefile...
I don't know how precisely the "generation Makefiles automatically" work,but I think it used, on the old eclipse/CDT the "discovery option" (depreciated) and on the the new eclipse/CDT the "Preprocessor Include Paths". But the order of the include paths define are not considered...
So, the question is:
Does anybody know how to impose the include directory order on the makefile? (exepted to make myself the makefile...)
I already spend lot of time with this, so please, help!!!
Thanks!
|
|
|
Re: old project (Ganymede) open with eclipse Neon [message #1751622 is a reply to message #1751575] |
Wed, 11 January 2017 23:10 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Changing the include order can affect the order of functions depending on how they are defined.
Changing the order of the objects in the link will also do this.
As would changing the order of external libraries in the link.
It you still have the makefile generated by Ganymede, you can try using it to build by running make in a command window. Then check that the executable is identical. If it's not, then you'll have to do more sophisticated comparisons.
As for include order, it's possible the makefile isn't being recreated. Check the modification dates.
When you change the Settings, the makefile normally isn't changed until the next build.
If you delete the configuration directories (Debug, Default, Release, etc.) then rebuild.
Neon will recreate them. The include order should then be what is in the Settings dialogs.
[Updated on: Thu, 12 January 2017 08:15] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04608 seconds