bug-commoncpp
[Top][All Lists]
Advanced

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

Re: ommoncpp2.1.8.1 build with c++ c17 does not work


From: Stefano Canepa
Subject: Re: ommoncpp2.1.8.1 build with c++ c17 does not work
Date: Tue, 4 Jun 2024 13:43:47 +0100

Matthew,
They are not maintained anymore. Last time I did some work on libcomoncpp2 was was 4 years ago. I’d suggest to give ucommon a try as they are more recent than libcommoncpp2.
If you like to work on multiple platform I’d suggest to use build.opensuse.org to host your builds.

All the best
Stefano

Stefano Canepa
sc@linux.it

Sciûsciâ e sciorbî no se pêu (Genoese for blowing and inhaling is not
possible.)

On 4 Jun 2024, at 11:16, Matthew Joyner <lmcmajo@hotmail.com> wrote:


Hi,

Is there any plan to update the commoncpp libaries to build with the latest gcc compilers.

It seems it no longer complies in Debian/Ubuntu 22.04 and on SUSE LEAP 15/SLES 15

I am actually trying to rebuild the libaries for leap 42 for use in an RTP application.  But thought I would try in ubunnu as I use it on my home pc.

it has been removed from Debian for example:


So I have questions.  Is it that ccrtp now uses the uCommon  instead?

I got two errors so far, one I corrected as I found a solution.

It is possible but not easy to use an older gcc like gcc 7 but difficult to do in latest version of Ubuntu. Oldest available is gcc 8.


The other is a bit more complicated:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -MT persist.lo -MD -MP -MF .deps/persist.Tpo -c persist.cpp  -fPIC -DPIC -o .libs/persist.o
In file included from persist.cpp:39:
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:269:72: note: in expansion of macro ‘THROWS’
  269 |     Engine(std::iostream& stream, EngineMode mode, bool compress=true) THROWS (PersistException);

To do with the depricated throws in gcc 11 up.

Are there plans to include the fixes for the latest gcc compilers or is the plan to use the ucommon instead for rtp?

Thanks,

Matthew Joyner


reply via email to

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