Embarcadero Releases Free C++ Compiler for Windows

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Thu Jul 28, 2016 3:44 pm

mastintin wrote:
Enrico Maria Giordano wrote:Enrico , xtgmath.h file in C:\BCC101\include\dinkumware64


Sorry, I need 32 bit. And, as far as I know, there is no 64 bit version of the new free compiler.

mastintin wrote:the command line that appears here works well for me :
viewtopic.php?f=6&t=32742#p192491


I'm trying to compile xHarbour using the new free compiler.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby carlos vargas » Thu Jul 28, 2016 3:52 pm

enrico
\include\dinkumware64


is used by clang compiler in 32 and 64 bits.

only bcc32 using
Code: Select all  Expand view
\include\dinkumware


salu2
carlos vargas
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Thu Jul 28, 2016 5:02 pm

I don't have include\dinkumware64 directory... :?:

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby mastintin » Fri Jul 29, 2016 6:50 am

this link is the zip file from embarcadero ...
https://ufile.io/8b3f1
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 8:42 am

Downloaded, thank you. I'll experiment with it.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 9:07 am

I'm trying to compile this C++ sample:

Code: Select all  Expand view
#include <iostream>


int main()
{
    std::cout << "Hello, World!" << std::endl;

    return 0;
}
 


And I get:

Code: Select all  Expand view
In file included from e:\fw\bcc72c\include\dinkumware\iostream:5:
In file included from e:\fw\bcc72c\include\dinkumware\istream:5:
In file included from e:\fw\bcc72c\include\dinkumware\ostream:5:
In file included from e:\fw\bcc72c\include\dinkumware\ios:5:
In file included from e:\fw\bcc72c\include\dinkumware\xlocnum:5:
In file included from e:\fw\bcc72c\include\windows\crtl\cmath:17:
In file included from e:\fw\bcc72c\include\windows\crtl\math.h:22:
In file included from e:\fw\bcc72c\include\dinkumware64\xtgmath.h:6:
e:\fw\bcc72c\include\dinkumware64\xtr1common:18:9: error: unknown type name '_CONST_DATA'
        static _CONST_DATA _Ty value = _Val;


followed by tons of other errors.

Any ideas?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 9:11 am

Sorry, my fault. Now it works fine, thank you.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 12:26 pm

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

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 1:17 pm

After all the warnings I get this error:

Code: Select all  Expand view
Error: 'E:\XHBSVN\XHARBOURC\OBJ\B32\HBLIB.OBJ' contains invalid OMF record, type 0x4c (possibly COFF)


I did not find the cause of the problem so far... :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby albeiroval » Fri Jul 29, 2016 2:24 pm

Hola a todos,

Tengo problemas con el nuevo Bcc 7.20, cuando instalo la aplicacion en un equipo windows XP con service pack 2 o 3, me da el siguiente error :

"No se encuentra el punto de entrada del procedimiento InterlockedCompareExchange64 en la biblioteca de vinculos dinamicos KERNEL32.DLL"
Saludos,
Regards,

Albeiro Valencia
www.avcsistemas.com
User avatar
albeiroval
 
Posts: 368
Joined: Tue Oct 16, 2007 5:51 pm
Location: Barquisimeto - Venezuela

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Fri Jul 29, 2016 2:50 pm

It seems that the new BCC is not compatible with XP.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Antonio Linares » Fri Jul 29, 2016 9:19 pm

It seems as there is a possible solution for this:

https://groups.google.com/forum/#!msg/mongodb-dev/CnxCZgG_r4A/qh-uDXAoOjkJ

It is possible to implement a replacement function for InterlockedCompareExchange64 in assembly on XP systems


But they don't explain there how
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Antonio Linares » Fri Jul 29, 2016 9:28 pm

If you comment these lines from winbase.h then it may solve the problem:

Code: Select all  Expand view
FORCEINLINE
unsigned __int64
InterlockedCompareExchange(
    _Inout_ _Interlocked_operand_ unsigned __int64 volatile *Destination,
    _In_ unsigned __int64 Exchange,
    _In_ unsigned __int64 Comperand
    )
{
    return (unsigned __int64) _InterlockedCompareExchange64((volatile __int64*) Destination, (__int64) Exchange, (__int64) Comperand);
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Sat Jul 30, 2016 10:09 am

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

Re: Embarcadero Releases Free C++ Compiler for Windows

Postby Enrico Maria Giordano » Sat Jul 30, 2016 12:48 pm

Enrico Maria Giordano wrote:After all the warnings I get this error:

Code: Select all  Expand view
Error: 'E:\XHBSVN\XHARBOURC\OBJ\B32\HBLIB.OBJ' contains invalid OMF record, type 0x4c (possibly COFF)


I did not find the cause of the problem so far... :-(

EMG


Compiling hblib.c alone I got the working EXE without errors. So the problem should be in the SVN build files but I can't find it...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 95 guests