Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Only the hypocrite is really rotten to the core." -- Hannah Arendt.


devel / comp.lang.xharbour / Re: A doubt about C++ compile mode

SubjectAuthor
* A doubt about C++ compile modeEnrico Maria Giordano
`* Re: A doubt about C++ compile modeRon Pinkas
 `- Re: A doubt about C++ compile modeEnrico Maria Giordano

1
A doubt about C++ compile mode

<um6jk8$22d10$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18068&group=comp.lang.xharbour#18068

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: A doubt about C++ compile mode
Date: Sat, 23 Dec 2023 13:25:45 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <um6jk8$22d10$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Dec 2023 12:25:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="030ef378ff3c28accebbbda6b37da230";
logging-data="2176032"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193oVCR0HSQpb43dnBCGpo6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VUSmzF2mYQrm00AafR7nB1hKU3A=
Content-Language: it
 by: Enrico Maria Giordan - Sat, 23 Dec 2023 12:25 UTC

Compiling with MSC32, I see the switch -TP in each line of the log. This
is the first:

CL -D__WIN32__ -D_HAVE_SQLITE_CONFIG_H -DHAVE_CONFIG_H -DHARBOUR_CONF
-DOPENSSL_NO_DEPRECATED -DHB_NO_DV_MEMCPY -DHB_NO_BACKGROUND -DHB_GUI
-I"source\rtl\zlib" -I"contrib\pdflite\include" -I"contrib\png"
-I"contrib\tiff" -I"contrib\jpeg" -I"include" -I"e:\msc32\msc\include"
-I"obj\vc32" -I"contrib\sixapi\include" -I"contrib\freeimage\include"
-I"contrib\gd\include" -I"contrib\xwt\include"
-I"contrib\xwt\src\xwt_win" -c -GA -Gs -EHsc -nologo -Otyb1 -W4
-wd4127 -wd4054 -wd4055 -MD -D_CRT_SECURE_NO_WARNINGS
-D_CRT_NONSTDC_NO_DEPRECATE -MD -MP -O1 -W4 -WX -TP -Foobj\vc32\hbrm.obj
utils\misc\hbrm.c

If I am not missing something, why are we compiling the whole xHarbour
in C++ mode?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: A doubt about C++ compile mode

<um7205$24oc9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18074&group=comp.lang.xharbour#18074

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: A doubt about C++ compile mode
Date: Sat, 23 Dec 2023 11:30:56 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <um7205$24oc9$1@dont-email.me>
References: <um6jk8$22d10$1@dont-email.me>
MIME-Version: 1.0
Injection-Date: Sat, 23 Dec 2023 16:31:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7998f5af8c6f367b94b6bde87e54ca3c";
logging-data="2253193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1917N1GNXL+4rkK0QvOcuimcKP9qww3YpU="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:etb1HaBj9u4OKk3VUFT57KjihH4=
 by: Ron Pinkas - Sat, 23 Dec 2023 16:30 UTC

Enrico Maria Giordano wrote:
>
> Compiling with MSC32, I see the switch -TP in each line of the log. This
> is the first:
>
> CL -D__WIN32__ -D_HAVE_SQLITE_CONFIG_H -DHAVE_CONFIG_H -DHARBOUR_CONF
> -DOPENSSL_NO_DEPRECATED -DHB_NO_DV_MEMCPY -DHB_NO_BACKGROUND -DHB_GUI
> -I"source\rtl\zlib" -I"contrib\pdflite\include" -I"contrib\png"
> -I"contrib\tiff" -I"contrib\jpeg" -I"include" -I"e:\msc32\msc\include"
> -I"obj\vc32" -I"contrib\sixapi\include" -I"contrib\freeimage\include"
> -I"contrib\gd\include" -I"contrib\xwt\include"
> -I"contrib\xwt\src\xwt_win" -c -GA -Gs -EHsc -nologo -Otyb1 -W4
> -wd4127 -wd4054 -wd4055 -MD -D_CRT_SECURE_NO_WARNINGS
> -D_CRT_NONSTDC_NO_DEPRECATE -MD -MP -O1 -W4 -WX -TP -Foobj\vc32\hbrm.obj
> utils\misc\hbrm.c
>
> If I am not missing something, why are we compiling the whole xHarbour
> in C++ mode?
>

This is a very old issue, IIRC it had to do with a way to be able to set
initialization code in C for MSC, (like INIT PROCEDURE in Clipper).

There was no standard way to set initialization, and each compiler
has/had its own trick. You may review hbinit.h

Ron

Re: A doubt about C++ compile mode

<um77ts$25kqe$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18077&group=comp.lang.xharbour#18077

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: A doubt about C++ compile mode
Date: Sat, 23 Dec 2023 19:12:14 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <um77ts$25kqe$3@dont-email.me>
References: <um6jk8$22d10$1@dont-email.me> <um7205$24oc9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Dec 2023 18:12:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="030ef378ff3c28accebbbda6b37da230";
logging-data="2282318"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rdiiwUQIgx1XhXBXaGdaq"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LWpTmIbjeB22KI3mYd6EFJrNzGM=
Content-Language: it
In-Reply-To: <um7205$24oc9$1@dont-email.me>
 by: Enrico Maria Giordan - Sat, 23 Dec 2023 18:12 UTC

Il 23/12/2023 17:30, Ron Pinkas ha scritto:

>> If I am not missing something, why are we compiling the whole xHarbour
>> in C++ mode?
>
> This is a very old issue, IIRC it had to do with a way to be able to set
> initialization code in C for MSC, (like INIT PROCEDURE in Clipper).
>
> There was no standard way to set initialization, and each compiler
> has/had its own trick. You may review hbinit.h

Ok, too much for me.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor