[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.cdt] Re: Change execution directory in Standard C/C++ Proj
|
Axel Mueller wrote:
> Richard Ralston wrote:
>
>
>> I have an existing project that has a tree of directories under the base
>> project directory. The sources are in one sub-directory and the
>> binaries placed in another. The standard build works fine, but newly
>> created ones can't find the makefile because it's in a sub-directory and
>> can't find it.
> Goto Projects->Properties->C/C++ Make Project. There you can select the
> build directory.
>
>> Similar problem with running... it looks in the project directory and
>> can't find the executable.
> In the main tab of the Launch configuration there is a field C/C++
> Application. Select the application by clicking Search project or Browse.
> The working directory can be chosen in the tab called Arguments.
>
>> I can't seem to find the magic setting that will fix these annoying
>> problems. Could someone please clue in the clueless? :-)
> Hope that helps.
>
> Axel
Thanks for the suggestions... I'm 1/2 way there! The executable runs fine
now with the directory change.
However, the "build make target" stuff is still not operating correctly.
I've tried setting the build directory by both "workspace" and "file
system" and get the same result: "*** No rule to make target xxx"
I found if I put a makefile at the root that calls the subdirectory one,
things work fine so it's calling make with the directory set as the root
despite my "build location" change. Unfortunately, that's not how things
are setup for the project I'm working on and getting that changed is mildly
painful.
Occasionally when I'm changing things in the dialog box I'll get a "see
error log" message... any idea where this file is located? I've check the
obvious places (project root, .eclipse, home dir and find nothing obvious.)
Thanks again for the assistance!
-Rich