Re: cons and different environments

<[email protected]> Tue, 22 Feb 2005 18:02:02 +0100
Newsgroups gmane.comp.gnu.cons.general
Message-ID <[email protected]>
Daniel Graupner <[email protected]> schrieb am 22.02.2005,
17:48:19:
> Program $CONS 'Scheduler', 'Scheduler.cpp','../classes/Scheduler.cpp','../classe
> s/SchedulerEvent.cpp','../classes/ErrorHandler.cpp';
> Program $CONS 'Configuration', 'Configuration.cpp', '../classes/Configuration.cp
> p', '../classes/ErrorHandler.cpp';
> 
> 
> Scheduler builds fine, to build Configuration I need the Compiler-Switch '-lxerces-c'. I tried to 
> clone the $CONS Environment in $CONS2 with LIBS=>'-lxerces-c' .
> But no cons exits with the error that there are two ways to build '../classes/ErrorHandler.cpp'. OK, 
> I know why this error appears, but I have no idea how to deal with it!


Hmm, is it common to define a 2nd environment and write:
Program $CONS 'Configuration', 'Configuration.cpp',
'../classes/Configuration.cpp', '../classes/ErrorHandler.o';

This seem to work.

Regards, Daniel.


_______________________________________________
[email protected]
http://lists.gnu.org/mailman/listinfo/cons-discuss
Cons URL: http://www.dsmit.com/cons/