tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Any interest in #pragma(lib) and CGI extensions?


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] Any interest in #pragma(lib) and CGI extensions?
Date: Mon, 13 Apr 2015 06:32:22 +0300

>Hi! There is patch partialy related with the previous one. It adds the ability 
>to compile a
> multiple source files with the -c switch like
>  tcc -c ex2.c ex5.c -xc ex7.cgi -xn ex8.c ex9.cgi
>PS: I used it to test the previous patch

> Both patches work nicely, but there is wrinkle with multiple input files: 
> multiple definitions of
> main. In my quick and dirty testing, the first file to define main gets its 
> definition used, which > may not be expected nor desired

The example is somehow wrong. A correct one is:
tcc -c ex2.c ex5.c
tcc -o ex2 ex2.o
tcc -o ex5 ex5.o
./ex2
./ex5

Both programs work Ok.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]