Re: sources file and ..\pathto\module.cpp by Doron
Doron
Mon Mar 01 10:16:36 CST 2004
the sources file cannot reference source files that are in a parent or
sibling directory. you can't use dot relative paths (nor hardcoded ones if
i remember). if you want to do what you want do this
cmn\<sources here>
cmn\sources.inc <-- sources line looks line sources =..\file1.cpp
..\file2.cpp <etc> <etc>
cmn\dirs <--- this will list one and two
cmn\one\sources <--- one of the first lines will be !INCLUDE ..\sources.inc
cmn\two\sources <--- same as one\sources
OR, put all of the common code into a lib and link that lib against your
final binary.
d
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.
"lallous" <lallous@lgwm.org> wrote in message
news:%23S7KaQ6$DHA.3804@TK2MSFTNGP09.phx.gbl...
> Hello
>
> I added to the sources line a new module in a directory below it as:
>
> sources = file1.cpp \
> ..\common\module2.cpp
>
> But now when building, this occurs:
> BUILD: Ignoring invalid directory prefix in SOURCES= entry:
> ..\common\module2.cpp
>
> Then: "Don't know how to build ...."
>
> How can I solve this?
>
> --
>
> Elias
>
>