Re: Noobilicious: Is there a g++ option to specify 'source directories'?
From: Nils O. Selåsdal (noselasd_at_frisurf.no)
Date: Tue, 16 Mar 2004 07:26:06 GMT
In article <_tu5c.82281$JN2.firstname.lastname@example.org>, 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