sourcefile needs source-directory in "User Paths"?

Login to reply to this topic.
Wed, 2007-01-10 18:55
Joined: 2007-01-10
Forum posts: 1
Hi there,

I am new to symbian and have the following question:
I am currently trying to use CodeWarrior (Evaluation Version) and have the problem that CW is adding the directory's containing our source-files to the "User Paths" which I thought are only for include-files.
To make sure you known what I mean: I am adding source.cpp from "/sourcetree/exampleModule" and CW is adding "/sourcetree/exampleModule" to the "User Paths"-List.

If I remove the directory from the list, CW is unable to find the source-file anymore.

The problem is now for example that if the source-directory's are also include-directory's I got into trouble with our non global-unique-filenames. So if the Symbian includes "time.h" it includes our time.h and fails. For us this was never a problem before because we are including aka <exampleModule/time.h>.

So is this behavior fixable in CW with a checkbox somewhere?

Fri, 2007-03-02 12:54
Joined: 2004-11-29
Forum posts: 1134
Re: sourcefile needs source-directory in "User Paths"?
What problems do it give?

If I understand you correctly you are talking about the codewarrior project settings?

You should, when working with symbian projects under codewarrior, NOT handle adding and removing files useing the normal cw interface...

This might work for your CW builds, but you will have to manually update your MMP file to be able to build from commandline... And you do want to be able to do this..

It is much better when working with CodeWarrior for Symbian, to mostly ignore the codewarrior project handling, and only work with the standard symbian mmp file, and on doing any change in these (like adding a file or library), just re-import the mmp.

The MMP is to be viewed as the "real" project file, and it is defining exactly one binary (exe or dll) (or in special case one static library)

Handling it through codewarrior is a good way to utterly confuse you, and suddenly be stuck with an unbuildable project that you have to spend several frustrating hours trying to understand how and why it happened Smiley
  • Login to reply to this topic.