Post
Topic
Board Announcements (Altcoins)
Re: ★[ANN] [NAV] NAVAJO COIN - EVENT IN TAIPEI ● NEW ROADMAP ● ANONYMOUS TECH. ● CHAT ●
by
svider
on 01/12/2015, 18:40:52 UTC

I think Package has written some initialization with the dialect
of C++11, instead of the C++ ISO standard style, and so the error.

Currently in qmake project, is set the -fpermissive flag, then they do
not give annoyance.

You might try to use one of these flags during compilation:
 -fpermissive
 -std=gnu++11
 -std=c++11


PS:
not verified


this would require that the latest versions of the compiler installed ...

does ubuntu have that? ... i know the earlier versions of fedora didnt ...

#crysx


You're right, it's a good point, that in the rush I had not considered,
among other flag -fpermisive it is already present in the (q) Makefile.

I did not imagine a version of ubuntu so old; the 12.04 use the gcc 4.6.

In this case there are two practical ways:
A) Edit the source in those lines that cause error, and remove the initialization
of variables from the definition of the class, and proceed to their initialization within
the constructor. In practice, returning to the style of the C++ ISO.

B) Proceed to update the gcc and g++ to a version a little more recently, as an example:
http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/
http://askubuntu.com/questions/271388/how-to-install-gcc-4-8

Both alternatives work, and despite the compiler produces some other warning here and there,
it terminates the compilation.

(verified in a VBox with a version of Lubuntu 12.04, QT 5.5. For the case B, I updated to gcc\g++ 4.8.1)




This solution work :-) Thanks a lot :-)