old project (Ganymede) open with eclipse Neon [message #1751575] |
Wed, 11 January 2017 10:48  |
Eclipse User |
|
|
|
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 #1751981 is a reply to message #1751696] |
Tue, 17 January 2017 08:58  |
Eclipse User |
|
|
|
Well, I try all what you say, but it didn't fixe the problem...
But I found what was wrong!
I have a strange folder architecture on my src.
I have a folder (Folder1) that contain *.c and *.h files, and an other folder (folder2), that contain some other *.c and *.h files.
Well it seem that old eclipse first link the files on "folder2", and after file contain by Folder1.
New Eclispe first link files on Folder1 and after file on folder2...
Solution was :
to create a "AFolder2" (take care of the uppercase and a letter before the F) on the src
drag an drop "folder2" on "Afolder2"
-change include path on Properties...
So simple, when you know it... I hope it will help someone, someday!
Thanks you for your help David!
This post is resolved!
|
|
|
Powered by
FUDForum. Page generated in 0.03964 seconds