Newbie: Managed build: Problem when project directory separated from source directory... [message #101306] |
Sat, 01 May 2004 05:07 |
Eclipse User |
|
|
|
Originally posted by: news20040501.nigel-eke.com
I have Eclipse 2.1.3 CDT 1.2.0 on Windows 2000 using G++ from Cygwin.
I can create a Managed-Make HelloWorld program where the source file is
in the same directory tree as the project file. This builds and runs
successfully.
However if I try a "linked" source file I get a build error.
The directory tree is:
Projects
|_eclipse
| |_Helloworld
| | |_Release
| | | |_ (makefile, subdir.dep, subdir.mk)
| | |_ (.cdtbuild, .cdtproject, .project, link_to_main.cpp)
|
|_HelloWorld
|_ (main.cpp)
When I build this I get the make error:
*** No rule to make target `main.o', needed by `HelloWorld.exe'.
I'm using this directory structure as I'd would like to keep the project
files separated from the source files.
I would also like to keep the .o and .exe files in a separate directory
and can't see how to do this.
Any help on either or both these problems much appreciated.
Many thanks,
Nigel
--
http://nigel-eke.com/
|
|
|
Powered by
FUDForum. Page generated in 0.06900 seconds