compile .c files as C++?

2018-01-25 Thread Jay K
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

Re: _SOURCES files in sub-directories lead to make distdir failure

2018-01-25 Thread netfab
When running make distdir with debug flag, grepping and tailing the output, I'm getting this : > $ LANG=C make -d distdir | grep Considering | tail -n 5 > Considering target file  >'/home/netfab/dev/projects/GLogiK/tools/../src/lib/dbus/arguments/GKDBusArgMacro.h'. > Considering target file  >'/h

Re: compile .c files as C++?

2018-01-25 Thread Thomas Jahns
On 01/25/18 04:07, Jay K wrote: I have a bunch of C. I want to move to C++. I'm using automake. I don't want to rename any files. that's unwise and not going to serve you well in the long run. I very much advise against not renaming files converted from C to C++. While it can be done, this is

Re: _SOURCES files in sub-directories lead to make distdir failure

2018-01-25 Thread netfab
Le 25/01/18 à 12:37, netfab a tapoté : > When running make distdir with debug flag, grepping and tailing the > output, I'm getting this : > [...] > > Considering target file 'src/lib/dbus/messages/GKDBusMessage.h '. > > make: *** No rule to make target'src/lib/dbus/messages/GKDBusMessage.h ',  > >n