This
topic might make a 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:
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 s
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 n
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.
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 "semi-automatica
> 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$ tinyc
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 everything
# It would help if you could provide more information. This is a log
# of commands I used to test a minimal example for your _first issue_ on
# Debian. Can you get this to work? How does your source and build
# differ? Tcc commit hash? Output from "uname -a"?
clive@akira:~/temp$ uname -a
Linux