FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to know the C++ compiler version
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
How to know the C++ compiler version
Posted: Tue Dec 03, 2013 08:17 PM

Hi all,

Is it possible to know the C++ compiler version? specially if it's BCC or MSVC? It's something like this:

cXHBVersion:=VERSION() // The (x)Harbour version
cFWVersion:=FWVERSION // The Fivewin version
cCCVersion := ???

TIA,

Kleyber Derick



FWH / xHb / xDevStudio / SQLLIB
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: How to know the C++ compiler version
Posted: Wed Dec 04, 2013 07:30 AM

hb_compiler()

Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Re: How to know the C++ compiler version
Posted: Wed Dec 04, 2013 07:38 PM

Biel,

Many thanks. It worked.

Kleyber Derick



FWH / xHb / xDevStudio / SQLLIB
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: How to know the C++ compiler version
Posted: Wed Dec 04, 2013 10:39 PM

To All

Unfortunately hb_compiler() for Borland always returns 5.51 :cry:

Rick Lipkin

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to know the C++ compiler version
Posted: Thu Dec 05, 2013 12:49 AM
Rick



Code (fw): Select all Collapse
? "Version S.O.: "+ Os() + CRLF + ;
  "Compilador..: "+ hb_Compiler() + CRLF + ;
  "BuildDate...: "+ hb_builddate() + CRLF + ;
  "CodeVer.....: "+ hb_pcodever()
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: How to know the C++ compiler version
Posted: Thu Dec 05, 2013 01:59 PM

To All

Did some research into this and the function hb_Compiler() returns the compiler used to create your xHarbour binaries. I have been happy with my version of xHarbour but I am ( today ) in the process of updating my xHarbour version compiled with Borland 5.82. During my trials, I may try BCC66.

Thanks
Rick Lipkin

Continue the discussion