[Top][All Lists]

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

compile .c files as C++?

From: Jay K
Subject: compile .c files as C++?
Date: Thu, 25 Jan 2018 03:07:34 +0000

I have a bunch of C.
I want to move to C++.
I'm using automake.
I don't want to rename any files.
Fortunately I already build libraries and then main separately. That might 
help, or not matter.
So I want to say:

libfoo_la_CFLAGS += -xc++

and possibly
main_CFLAGS += -xc

Or something higher level and have autoconf
figure it out -- i.e. /TP and /TC for Visual C++. error: linker flags such as '-xc++' belong in 


 - Jay

reply via email to

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