Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-30 Thread Clive Tovero via Tinycc-devel
good FAQ item.  Thanks for your comments.    arrivederci -Original Message- From: Michael Matz To: Clive Tovero via Tinycc-devel Sent: Wed, Jun 30, 2021 11:30 am Subject: Re: [Tinycc-devel] Problem after compiling tiny CC Hello, On Sat, 26 Jun 2021, Elijah Stone wrote: > On Sat, 26 Jun

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-30 Thread Michael Matz
Hello, On Sat, 26 Jun 2021, Elijah Stone wrote: On Sat, 26 Jun 2021, Clive Tovero via Tinycc-devel wrote: Also watch out for "ar", this will cause the problem too. Perhaps 'tcc -ar' should add libtcc.a automatically (unless you tell it not to)? That way it would be possible to compile a

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-28 Thread Clive Tovero via Tinycc-devel
On Sat, 26 Jun 2021 01:52:36 -0700 (PDT) Elijah Stone via Tinycc-devel wrote: > Perhaps 'tcc -ar' should add libtcc.a automatically (unless you tell it not to)? That way it would be possible to compile a static library with tcc and link a gcc app to it. Whether opt-in or opt-out, it would be

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-26 Thread Elijah Stone
On Sat, 26 Jun 2021, Clive Tovero via Tinycc-devel wrote: Also watch out for "ar", this will cause the problem too. Perhaps 'tcc -ar' should add libtcc.a automatically (unless you tell it not to)? That way it would be possible to compile a static library with tcc and link a gcc app to it.

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-25 Thread Clive Tovero via Tinycc-devel
Automatically. :) Turns out I had an old version of tcc installed.  Removing it and installing the latest corrected the problem with tcc. Also watch out for "ar", this will cause the problem too. On 6/26/21 1:26 AM, Clive Tovero wrote: > should be automatically linked Maybe

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-25 Thread Clive Tovero via Tinycc-devel
> should be automatically linked Maybe "semi-automatically"... ;) clive@akira:~/temp$ tinycc/tcc -v tcc version 0.9.27 - b5d4b90 (x86_64 Linux) clive@akira:~/temp$ cat b.c int b(int x) {     float y = x;     -y; /* generates the reference to __mzerosf */     return y; } clive@akira:~/temp$

Re: [Tinycc-devel] Problem after compiling tiny CC

2021-06-25 Thread Elijah Stone
On Fri, 25 Jun 2021, LOPEZ OLIVIER wrote: I actually got an error when I dlopen the library compiled by tcc (no error when I compil it with gcc). The error is : “undefined symbol: __mzerosf” __mzerosf is part of the tcc runtime library, which should be automatically linked in with