Re: [CMake] linking libraries at many levels

2009-08-25 Thread Pol Monsó IRI
> > > Did you try the > > nm lib/libcallibs.a | grep print_double_array > > command? > > Thanks Michael! With that command I spotted the mistake, it was already undefined before the linking process. The function was in the header, but not on the c file (!!). I recopied it nice & clean now. Thank

Re: [CMake] linking libraries at many levels

2009-08-25 Thread Michael Wild
On 25. Aug, 2009, at 16:06, Pol Monsó IRI wrote: In case you'd like to see the compilation too, here's the complete output. The 1A's and 1B's real name is wammoves and inout and the 2C's is wammates. yarp is an external 3d party libraries framework for robot software, it's all under the

Re: [CMake] linking libraries at many levels

2009-08-25 Thread John Drescher
On Tue, Aug 25, 2009 at 9:06 AM, Pol Monsó IRI wrote: > Hello cmake users! > > I'm quite new to cmake as well as makefiles, and i've bumped the same > trouble twice. I'm trying to break a source code into several libraries and > a main program. The scenario has one main executable called calClient

Re: [CMake] linking libraries at many levels

2009-08-25 Thread Michael Wild
On 25. Aug, 2009, at 15:51, Pol Monsó IRI wrote: DON'T EVER do something like this unless you really know what you're doing. The proper way of doing this is to use the Debug configuration at configure-time: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-Wall /path/to/ source Thanks

Re: [CMake] linking libraries at many levels

2009-08-25 Thread Pol Monsó IRI
> > DON'T EVER do something like this unless you really know what you're doing. > The proper way of doing this is to use the Debug configuration at > configure-time: > > cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-Wall /path/to/source > Thanks for the tip! I had just put the warnings on to f

Re: [CMake] linking libraries at many levels

2009-08-25 Thread Michael Wild
On 25. Aug, 2009, at 15:06, Pol Monsó IRI wrote: Hello cmake users! I'm quite new to cmake as well as makefiles, and i've bumped the same trouble twice. I'm trying to break a source code into several libraries and a main program. The scenario has one main executable called calClient which

[CMake] linking libraries at many levels

2009-08-25 Thread Pol Monsó IRI
Hello cmake users! I'm quite new to cmake as well as makefiles, and i've bumped the same trouble twice. I'm trying to break a source code into several libraries and a main program. The scenario has one main executable called calClient which uses functions from three libraries, let's say 1A 1B and