[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Can tcc -run work with multiple source files?
From: |
Peng Yu |
Subject: |
[Tinycc-devel] Can tcc -run work with multiple source files? |
Date: |
Sun, 28 Mar 2021 11:07:15 -0500 |
Hi,
See the following examples, tcc -run does not work with multiple
source files. But without -run tcc works as expected. Why -run does
not run? Can -run be made to work with multiple source files? Thanks.
$ cat main.c
#include "print.h"
int main() {
print();
}
$ cat print.c
#include <stdio.h>
void print() {
puts("Hello World!");
}
$ tcc -run main.c print.c
tcc: error: undefined symbol '_print'
$ tcc main.c print.c
$ ./a.out
Hello World!
--
Regards,
Peng
- [Tinycc-devel] Can tcc -run work with multiple source files?,
Peng Yu <=