Hi,

Compilation on Linux is failling on my Ubuntu 14.04 ( gcc 4.8.2)

It returns the error:

Error: Range-based 'for' loops are not allowed in C++98 mode

I have modified the Makefile to pass flag -std=c++11 to be able to compile it.

Don't know if is a problem when generating Makefile with qmake or is
missing some flag on qmake configuration ...

Other error that appears is the lc_application.cpp, don't know why but
don't like __DATE__ in the middle of two static string ... patch
bellow.

Thanks for leocad.

Regards,
Aníbal


Index: common/lc_application.cpp
===================================================================
--- common/lc_application.cpp    (revision 1653)
+++ common/lc_application.cpp    (working copy)
@@ -212,7 +212,7 @@
             else if ((strcmp(Param, "-v") == 0) || (strcmp(Param,
"--version") == 0))
             {
                 printf("LeoCAD Version " LC_VERSION_TEXT "\n");
-                printf("Compiled "__DATE__"\n");
+                printf("Compiled %s\n", __DATE__);

                 return false;
             }
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to