Hi,
Sorry, I have to post it again, I used wrong email address.
I am pretty new to CDT and appreciate if you could help me.
My aim is to make cross platform GNU tool chain for MIPS works in CDT.
The Eclipse platform I am using is Version: 3.0.1SDK, The CDT plugins version is 2.02 SDK.
I installed the cygwin on the PC and installed SDE MIPS GNU tool chain.
Now I made two simple projects: both of them are just simple HelloWorld. The first one is standard make project and the second one is managed make project.
In the Standard projects properties ->C/C++ Make Project, I changed Build Command to C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe instead of make since my make is in the path: C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe
The HelloWorld makefile is as following:
all: hello
clean:
rm main.o hello hello.exe
hello: main.o
C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -g -o hello main.o
main.o: main.cpp
C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -c -g main.cpp
Notice that I have to specify the absolute path for g++ too.
When I built this project, I got the error like:
C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe all
C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -c -g main.cpp
C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -g -o hello main.o
collect2: cannot find `ld'
sde-make: *** [hello] Error 1
It seems trying to find default ld, how can I let it find the C:\cygwin\usr\local\sde-5.03\bin\sde-ld.exe?
For the second managed make project, in the project properties->C/C++ Build page, I changed make, linker and compiler point to the absolute path C:\cygwin\usr\local\sde-5.03\bin\.
When I started to build this project, I got the error message popup:
The dynamic link library cygwin1.dll could not be found in the specified path...
And also error message from CDT console view:
C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe -k clean all
rm -rf main.o main.d HelloWorld.exe
'Building file: ../main.cpp'
C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -I"C:\sde-5.03\include\g++-3\std" -O0 -g -o main.o ../main.cpp
sde-make: *** [main.o] Error 1
sde-make: Target `all' not remade because of errors.
Build complete for project HelloWorld
First all, I want to make sure is my way the right way for using GNU mips in CDT.
Second, please give me some clues to solve these problems?
Appreciate!
Julie