Page 1 of 1

Can't build my project with "-std=c++0x" option enabled

PostPosted: Tue Jul 24, 2012 7:09 pm
by remico
Hello.
I have a little problem with QxOrm. I have built examples succesfully. So all libraries works right, I suppose. But when I try to build my project
with "-std=c++0x" option enabled for my compiler then I have this error:
*********
mingw32-make: *** [build/obj/debug/main.o] Error 1
21:45:17: The process "C:\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project XYZ (target: Desktop)
When executing step 'Make'
*********

And without specifying "-std=c++0x" option my project compile succesfully.

So can anybody tell me what is the reason of this error?
The problem is in QxOrm, or in Boost, or maybe in my curved hands?
Because my others Qt-only based projects compiled succesfully with this option enabled.

My compiler is MinGW (gcc 4.7.1).
Boost 1.49.
Qt 4.8.2.

Re: Can't build my project with "-std=c++0x" option enabled

PostPosted: Wed Jul 25, 2012 9:01 am
by QxOrm admin
Hi,

So all libraries works right, I suppose.

To be sure, just execute all exec : if there is no assert => then your install is perfect ;)

But when I try to build my project with "-std=c++0x" option enabled for my compiler then I have this error...

I have not tested this option yet !
I will test it when I will have some time and I will answer you...

Re: Can't build my project with "-std=c++0x" option enabled

PostPosted: Wed Jul 25, 2012 9:43 am
by remico
Thank you for quick reply.
I have succesfully executed qxBlog and qxClientServer examples. They work fine.
So I'll wait your answer about testing that particular option.
Thanks again for your great work.