Page 2 of 4

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Thu Jul 28, 2016 3:44 pm
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Thu Jul 28, 2016 3:52 pm
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Thu Jul 28, 2016 5:02 pm
by Enrico Maria Giordano
I don't have include\dinkumware64 directory... :?:

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 6:50 am
by mastintin
this link is the zip file from embarcadero ...
https://ufile.io/8b3f1

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 8:42 am
by Enrico Maria Giordano
Downloaded, thank you. I'll experiment with it.

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 9:07 am
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 9:11 am
by Enrico Maria Giordano
Sorry, my fault. Now it works fine, thank you.

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 12:26 pm
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 1:17 pm
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 2:24 pm
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"

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 2:50 pm
by Enrico Maria Giordano
It seems that the new BCC is not compatible with XP.

EMG

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 9:19 pm
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Fri Jul 29, 2016 9:28 pm
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);
}

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Sat Jul 30, 2016 10:09 am
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

Re: Embarcadero Releases Free C++ Compiler for Windows

Posted: Sat Jul 30, 2016 12:48 pm
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