Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Newbie: Managed build: Problem when project directory separated from source directory...
Newbie: Managed build: Problem when project directory separated from source directory... [message #101306] Sat, 01 May 2004 05:07
Eclipse UserFriend
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/
Previous Topic:Embedded Debugging for Motorola 68332 with gdb-5.3 + bdm
Next Topic:Message disappeared
Goto Forum:
  


Current Time: Mon Jul 14 09:38:00 EDT 2025

Powered by FUDForum. Page generated in 0.06900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top