[Scons-users] use C++ compiler for building

Philipp Kraus philipp.kraus at flashpixx.de
Fri Dec 28 11:36:53 EST 2012


This is also my first solution, I my case I clone my default env object change the compiler on the cloned object and call SharedLibrary, but is there a better solution?

Thanks

Phil

Am 28.12.2012 um 16:18 schrieb Matthieu Brucher:


> Hi,

>

> I think you could set env['CC'] = env['CXX']

>

> Cheers,

>

> Matthieu

>

>

>

> 2012/12/28 Philipp Kraus <philipp.kraus at flashpixx.de>

> Hello,

>

> I build C codes to a shared library with scons, the library codes are stored in *.c files and Scons uses the gcc for compiling the library. The library is written in plain C and can be build also with a C++ compiler for setting some different calls. How can I tell Scons on the env.SharedLibrary command, that the C++ compiler should be used.

>

> Thanks

>

> Phil

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

>

> --

> Information System Engineer, Ph.D.

> Blog: http://matt.eifelle.com

> LinkedIn: http://www.linkedin.com/in/matthieubrucher

> Music band: http://liliejay.com/

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121228/a129a9a2/attachment.html>


More information about the Scons-users mailing list