Embarcadero Releases Free C++ Compiler for Windows

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 »

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 :
http://forums.fivetechsupport.com/viewt ... 42#p192491
I'm trying to compile xHarbour using the new free compiler.

EMG
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by carlos vargas »

enrico
\include\dinkumware64
is used by clang compiler in 32 and 64 bits.

only bcc32 using

Code: Select all

\include\dinkumware
salu2
carlos vargas
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by mastintin »

this link is the zip file from embarcadero ...
https://ufile.io/8b3f1
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 »

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

Code: Select all

#include <iostream>


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

    return 0;
}
 
And I get:

Code: Select all

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: 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 »

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
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 »

After all the warnings I get this error:

Code: Select all

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
albeiroval
Posts: 323
Joined: Tue Oct 16, 2007 5:51 pm
Location: Barquisimeto - Venezuela

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by albeiroval »

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
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 »

It seems as there is a possible solution for this:

https://groups.google.com/forum/#!msg/m ... -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: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Embarcadero Releases Free C++ Compiler for Windows

Post by Antonio Linares »

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

Code: Select all

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
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
I tried using -w-pun compiler switch to no avail... :-(

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:After all the warnings I get this error:

Code: Select all

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
Post Reply