With scons, how do you reference prebuilt libraries?

I recently started using scons to create several small cross-platform projects. One of these projects should link to pre-built static libraries ... how is this done?

In make, I simply add โ€œlink / LIBPATH: where libstxxl.libโ€ on windows and โ€œstxxl.aโ€ on unix.

+6
c ++ build-process scons build-tools
source share
1 answer

Just to document the answer, as I already found it myself.

Program( 'foo', ['foo.cpp'], LIBS=['foo'], LIBPATH='.' ) 

Adding the LIBS and LIBPATH parameters adds the correct arguments to the build command line.

More details here .

+9
source share

All Articles