Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problem with makefile

Hi!

I use Eclipse 3.0, ctd 2.1.1 and MinGW. I have any project and use
simple makefile for it, following contents:

main : main.o
        g++ -o main main.o -L C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++
main.o : main.cpp
        g++ -ggdb -c main.cpp
all :
        ${MAKE} main
clean :
        -del main.o

This project was created in Eclipse 2.1 and cdt 1.2 with using like
now MinGW, there when I use "Project"->"Build Project" it working
successfully, but now, in Eclipse 3, when I use this command, I have
next lines:
mingw32-make all
mingw32-make main
mingw32-make[1]: Entering directory `E:/Run/eclipse/workspace/Compilier'
g++ -o main main.o -L C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++
mingw32-make[1]: Leaving directory `E:/Run/eclipse/workspace/Compilier'

And my project doesn't compile, and if I want compile project, I  must
    use "Project"->"Clean..." with check "Start a build immediately".
Please, tell me why, my makefile working in Eclipse version 2, but
doesn't work in version 3, and what I can do to my project compile in
Eclipse 3 by "Project"->"Build Project".

Thanks,

 Vadim                          mailto:vadkra@xxxxxxxxx




Back to the top