Re: Noobilicious: Is there a g++ option to specify 'source directories'?
From: Nils O. Selåsdal (noselasd_at_frisurf.no)
Date: 03/16/04
- Next message: florian schmidt: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Previous message: Christopher Browne: "Re: GUI Report Designer?"
- In reply to: WTH: "Noobilicious: Is there a g++ option to specify 'source directories'?"
- Next in thread: WTH: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Reply: WTH: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Mar 2004 07:26:06 GMT
In article <_tu5c.82281$JN2.1592@bignews4.bellsouth.net>, WTH wrote:
> I have some common unix code in a folder that I'd like to be able to refer
> to without using a wildcar like ./unixsource/* because some is for Linux and
> some is for Irix.
>
> Is there a way to tell g++ to look into particular directories for the files
> I list after "-c", for example:
Not that I know of.
>
> SOURCE_DIR = ./unixsource
>
> g++ -c CSceneGraph.cpp CNodes.cpp -I./includes -srcdir $(SOURCE_DIR)
Why not simply
g++ -c $(SOURCE_DIR)/CSceneGraph.cpp $(SOURCE_DIR)/CNodes.cpp -I./includes
-- Vennlig hilsen/Best Regards Nils Olav Selåsdal System Engineer w w w . u t e l s y s t e m s . c o m
- Next message: florian schmidt: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Previous message: Christopher Browne: "Re: GUI Report Designer?"
- In reply to: WTH: "Noobilicious: Is there a g++ option to specify 'source directories'?"
- Next in thread: WTH: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Reply: WTH: "Re: Noobilicious: Is there a g++ option to specify 'source directories'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|