Page 4 of 4

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 8:11 am
by Antonio Linares
http://stackoverflow.com/questions/12894454/how-to-remove-gcc-warning-on-pragma-region

#ifdef _MSC_VER
#pragma region
#endif

<code here>

#ifdef _MSC_VER
#pragma endregion
#endif

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 8:15 am
by Enrico Maria Giordano
There are 1386 include files containing #pragma region... :-(

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 8:26 am
by Antonio Linares
:(

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 8:27 am
by Antonio Linares
With UEStudio we can do a global search and replace in files

Maybe thats an option

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 8:45 am
by Enrico Maria Giordano
I don't think it's a good idea to alter the compiler files.

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 3:18 pm
by cnavarro
To see if it helps
Also for 7.20 version
Image

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 3:32 pm
by Enrico Maria Giordano
Sorry, already tried (see page 2 of this thread).

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Mon Aug 22, 2016 3:59 pm
by cnavarro
Enrico Maria Giordano wrote:
Enrico Maria Giordano wrote:I'm trying to compile xHarbour with the new compiler. First problem, I get:

Code: Select all  Expand view
e:\fw\bcc101\include\windows\sdk\windows.h:42:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma region Application Family or OneCore Family


Any ideas?

EMG


I tried using -w-pun compiler switch to no avail... :-(

EMG


Ah!, ok, I had not seen it -wpun

Re: Embarcadero Releases Free C++ Compiler for Windows

PostPosted: Sun Aug 28, 2016 9:03 am
by Enrico Maria Giordano
I'm about to give up. It looks like this compiler is not full ready yet.

EMG