[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: [cdt4] makefile problem

ZhaoBo wrote:
Hi,

I have created a managed C++ project and manually run make under WindowsXP like
C:\Documents and Settings\b7zhao>make -f C:\Eclipse_project\study\HelloWorld\Deb
ug\makefile


Building target: HelloWorld.exe
Invoking: Cygwin C++ Linker
g++-3  -o"HelloWorld.exe"
g++-3: no input files
make: *** [HelloWorld.exe] Error 1

I am puzzled that since there is subdir.mk(seems for compiling) and it is included in the makefile by "-include subdir.mk", why no compiling and only linking here

Could anyone tell me mechanism of the building process in CDT.

Thanks,
Zhao


Hi Zhao,

You may be having a current working directory problem here. When the makefile is launched from within the IDE, the working directory was C:\Eclipse_project\study\HelloWorld\Debug\, but when you launched at the command line it was C:\Documents and Settings\b7zhao.

Either CD into the correct directory, or launch make like this:
make -C C:\Eclipse_project\study\HelloWorld\Debug\

I hope that solves your problem.

Enjoy!
Jonah