[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] Bug in makefile autogeneration
|
I am currently using eclipse 3.0 and cdt 2.0.
I an a newbie in using eclipse (also a java/c starter) and I use Mac OS X 10.3.
There seems to be a problem in auto-generation of the makefile. (In managed C project)
CDT seems to generate :
<x-tad-bigger> gcc -o$@ </x-tad-bigger><x-tad-bigger>$(OBJS)</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>$(USER_OBJS)</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>$(LIBS)</x-tad-bigger>
which needs to be
<x-tad-bigger> gcc -o $@ </x-tad-bigger><x-tad-bigger>$(OBJS)</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>$(USER_OBJS)</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>$(LIBS)</x-tad-bigger>
And the build fails.
There's also a execution problem.
when the makefile is corrected and built, eclipse can't execute the binary. I think this problem is because eclipse finds the binary in the project root directory, while the actual binary is in the Debug directory.
I hope this problem only exists in Mac OS X.
Sincerely,
Sung-Jin Hong