FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Embarcadero Releases Free C++ Compiler for Windows
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 09:33 AM
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


Code (fw): Select all Collapse
#pragma region
is only a microsoft feature, i suggest to surround it in a ifdef like say here: http://stackoverflow.com/a/23561973/854279
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 10:02 AM
AntoninoP wrote:
Code (fw): Select all Collapse
#pragma region
is only a microsoft feature, i suggest to surround it in a ifdef like say here: http://stackoverflow.com/a/23561973/854279


It's not in my code. And it is not the only problem. I don't want to alter compiler code.

EMG
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 11:07 AM

Hi Enrico.

Try edit next files and please, change bcc55 to your bcc path:

bcc32c.cfg:
-I"c:\harbour\bcc55\include";"c:\harbour\bcc55\include\windows\crtl";"c:\harbour\bcc55\include\windows\rtl";"c:\harbour\bcc55\include\windows\sdk";"c:\harbour\bcc55\include\dinkumware64"
-L"c:\harbour\bcc55\lib\win32c\release";"c:\harbour\bcc55\lib\win32c\release\psdk"

ilink32.cfg
-L"c:\harbour\bcc55\lib\win32c\release";"c:\harbour\bcc55\lib\win32c\release\psdk"

best regards'.

PS: this is only an idea, not tested yet...

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 12:11 PM

The paths are already fine. The problem is the include files of the new compiler or some compiler switch to use for disable the warning.

EMG

Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 07:18 PM

IMHO is time to think to move from bcc to mingw.

I compiled harbour with mingW using msys2 and all is fine including all samples from fwh.

The only problem that I see is with resources, we need replace "\" by "/"

Regards.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 07:54 PM
toninhofwi wrote:IMHO is time to think to move from bcc to mingw.


Why? I need I real reason or I'm not interested. MinGW is from Linux, a world that I don't like very much.

EMG
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 01, 2016 11:24 PM
Enrico Maria Giordano wrote:
toninhofwi wrote:IMHO is time to think to move from bcc to mingw.


Why? I need I real reason or I'm not interested. MinGW is from Linux, a world that I don't like very much.

EMG


I understand you, but the classic BCC was killed and this new BCC is a clang based compiler (http://clang.llvm.org/) :-)

Regards.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Tue Aug 02, 2016 07:39 AM
toninhofwi wrote:I understand you, but the classic BCC was killed and this new BCC is a clang based compiler (http://clang.llvm.org/) :-)


So? What's the point?

EMG
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Tue Aug 02, 2016 09:38 PM
Enrico Maria Giordano wrote:MinGW is from Linux, a world that I don't like very much.


Enrico this new bcc is clang based, if you don't like Linux, maybe you don't like clang too.

Andi post on harbour devel sometimes ago that BCC clang edition is very slow and now I read this:

http://community.embarcadero.com/answer ... -very-slow
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Wed Aug 03, 2016 06:40 AM

We may consider to keep using BCC 7.0 if 7.2 is slower

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Wed Aug 03, 2016 07:40 AM
toninhofwi wrote:Enrico this new bcc is clang based, if you don't like Linux, maybe you don't like clang too.


I like BCC because is small and simple to use. There is no so much differences between normal and clang version in size and use. So I'd happily use clang version if only I could solve the problem that I reported above.

toninhofwi wrote:Andi post on harbour devel sometimes ago that BCC clang edition is very slow and now I read this:

http://community.embarcadero.com/answer ... -very-slow


I already made some test with pure C and It seemed faster in compiling and producing a smaller EXE. I don't know if this is true with [x]Harbour/FWH EXEs too. That's the reason why I'm trying to compile xHarbour with clang version, without success so far.

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Wed Aug 03, 2016 07:42 AM
Antonio Linares wrote:We may consider to keep using BCC 7.0 if 7.2 is slower


We can use "normal" (non clang) version of BCC 7.2 that is working just fine. You can download it from Mel Smith website (http://www.whosaway.com).

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Sun Aug 21, 2016 09:12 AM
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


Up. :-)

Please note that any single include file of the include\windows directory have

#pragma region

inside it. Surely there has to be a way to disable that warning. But how?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 22, 2016 06:16 AM

-Wno-unknown-pragmas ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Mon Aug 22, 2016 07:57 AM
Code (fw): Select all Collapse
E2075 Incorrect command line option: -Wno-unknown-pragmas


:-)

EMG