FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Embarcadero Releases Free C++ Compiler for Windows
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 08:11 AM
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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 08:15 AM

There are 1386 include files containing #pragma region... :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 08:26 AM

:(

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 08:27 AM

With UEStudio we can do a global search and replace in files

Maybe thats an option

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 08:45 AM

I don't think it's a good idea to alter the compiler files.

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 03:18 PM
To see if it helps
Also for 7.20 version
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 03:32 PM

Sorry, already tried (see page 2 of this thread).

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Mon Aug 22, 2016 03:59 PM
Enrico Maria Giordano wrote:
Enrico Maria Giordano wrote:I'm trying to compile xHarbour with the new compiler. First problem, I get:

Code (fw): Select all Collapse
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
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Sun Aug 28, 2016 09:03 AM

I'm about to give up. It looks like this compiler is not full ready yet.

EMG

Continue the discussion