Embarcadero Releases Free C++ Compiler for Windows

AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by AntoninoP »

Enrico Maria Giordano wrote:I'm trying to compile xHarbour with the new compiler. First problem, I get:

Code: Select all

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: Select all

#pragma region
is only a microsoft feature, i suggest to surround it in a ifdef like say here: http://stackoverflow.com/a/23561973/854279
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

AntoninoP wrote:

Code: Select all

#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
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by toninhofwi »

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...
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

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
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by toninhofwi »

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.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

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
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by toninhofwi »

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.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

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
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by toninhofwi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Enrico Maria Giordano »

Enrico Maria Giordano wrote:I'm trying to compile xHarbour with the new compiler. First problem, I get:

Code: Select all

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Antonio Linares »

-Wno-unknown-pragmas ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply