FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Embarcadero Releases Free C++ Compiler for Windows
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Thu Jul 28, 2016 03: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
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Thu Jul 28, 2016 03:52 PM
enrico
\include\dinkumware64


is used by clang compiler in 32 and 64 bits.

only bcc32 using
Code (fw): Select all Collapse
\include\dinkumware


salu2
carlos vargas
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Thu Jul 28, 2016 05:02 PM

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

EMG

Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 06:50 AM

this link is the zip file from embarcadero ...

https://ufile.io/8b3f1

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 08:42 AM

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

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 09:07 AM
I'm trying to compile this C++ sample:

Code (fw): Select all Collapse
#include <iostream>


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

    return 0;
}


And I get:

Code (fw): Select all Collapse
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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 09:11 AM

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

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 12:26 PM
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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 01:17 PM
After all the warnings I get this error:

Code (fw): Select all Collapse
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
Posts: 400
Joined: Tue Oct 16, 2007 05:51 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 02: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 02:50 PM

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

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 09: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Fri Jul 29, 2016 09:28 PM
If you comment these lines from winbase.h then it may solve the problem:

Code (fw): Select all Collapse
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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: 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 (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


I tried using -w-pun compiler switch to no avail... :-)

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Embarcadero Releases Free C++ Compiler for Windows
Posted: Sat Jul 30, 2016 12:48 PM
Enrico Maria Giordano wrote:After all the warnings I get this error:

Code (fw): Select all Collapse
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