libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool c++ compiler for *.c source files


From: Will Mason
Subject: Re: libtool c++ compiler for *.c source files
Date: Sun, 24 May 2009 11:50:22 -0500



On Sun, May 24, 2009 at 11:37 AM, Andreas Otto <address@hidden> wrote:
Am Sonntag 24 Mai 2009 16:59:29 schrieb Ralf Wildenhues:
> Hello Andreas,
>
> * Andreas Otto wrote on Fri, May 22, 2009 at 01:17:50PM CEST:
> >     2.      I create a "C" libraray using a couple of *.c files
>
> lib_LTLIBRARIES = libceelib.la
> libceelib_la_SOURCES = foo.c bar.c
>
> >     3.      now I want to create a "C++" library from the same *.c input files
>
> lib_LTLIBRARIES += libceepluspluslib.la
> libceepluspluslib_la_SOURCES = $(libceelib_la_SOURCES)
> EXTRA_libceepluspluslib_la_SOURCES = dummy.cpp


this does not solve the problem, because not only the linker have to be
choosen ... the "*.c" files itself should be compiled using "g++" and
not "gcc"


Hello,
I'm having a hard time understanding why you would want to do this. What problem does building the library with a C compiler and then again with a C++ compiler actually solve? Why can't you just use the C library from your C++ program and call it a day?

Just wondering, thanks,
Will

reply via email to

[Prev in Thread] Current Thread [Next in Thread]