TCC is a tiny C compiler which enables you to use C as scripting language.
Questions tagged [tcc]
117 questions
0
votes
1 answer
Windows / TCC / C Reading binary file pointer randomly jumping
I have googled extensively for this and having now spent 4 hours stuck, I hope someone can help me.
I have a simple program to read a binary file, which is approx 2.7 MB. The program is compiled on Windows using the tcc compiler. I'm experienced in…

rubusrubus
- 3
- 2
0
votes
1 answer
TCC -c option error
I am trying to convert my .c file to a .s file using TCC, however, I get the error: tcc: cannot specify multiple files with -c
tcc.exe main.c -c main.S
What should I do?

Joe
- 1,059
- 2
- 11
- 21
0
votes
2 answers
is there a way to compile windows GUI, that is no-console exe in tcc?
I know the switch in gcc but there is nothing about such option in TTC. I read about something _winstart or what swich but I don't know where to put it.

rsk82
- 28,217
- 50
- 150
- 240
0
votes
2 answers
problems compiling TCC on ubuntu for arm
I tried to compile tcc for ARM using gcc 4.6.3 . but I got following error while compiling in both shared/static lib mod :
root@localhost:/p/tcc/tcc# make
gcc -o tcc tcc.o libtcc.so.1.0 -lm -ldl -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign…

alireza_fn
- 884
- 1
- 8
- 21
0
votes
1 answer
execl() causes an application crash
I compiled and ran the following program with TCC under Windows 7 and got an application crash:
#include
int main(void)
{
if (execlp("c:\\windows\\system32\\whoami.exe", "c:\\windows\\system32\\whoami.exe") < 0)
…

Ori Popowski
- 10,432
- 15
- 57
- 79
0
votes
2 answers
GNU Autotools with TCC
I recently discovered the Tiny C Compiler. For the project that I'm currently working on, performance is not a real issue, but file size is, making TCC ideal. I'm using Autotools as a build manager, and I figured that using TCC would be as simple as…

Colin Atkinson
- 986
- 1
- 9
- 18
-1
votes
1 answer
How set CMAKE_STATIC_LINKER_FLAGS immediately after the executable file? [tcc -ar]
How set CMAKE_STATIC_LINKER_FLAGS in CMakeLists.txt immediately after the executable file?
for example:
I need:
tcc.exe-arqc staticRun.lib CMakeFiles/staticRun.dir/utils/system.c.obj
but cmake after this settings:
set (CMAKE_AR…

ilw
- 2,499
- 5
- 30
- 54
-1
votes
1 answer
Compile an STM32 program on X86 Linux using TinyCC
How can I install and configure TinyCC, then invoke the compiler and the linker to produce the .bin file that I can flash into my STM32 demo board? Please include specific steps. I am on Ubuntu 19.10 x86_64.

exebook
- 32,014
- 33
- 141
- 226
-1
votes
1 answer
tcc: error: undefined symbol 'pthread_create'
I am trying to compile this with tcc
and I have these errors
Before the error it was "Cannot find pthread.h" and I copied
pthread,pthread_compat,pthread_signal,pthread_time,pthread_unistd header files from gcc include dir to tcc include dir !…
-1
votes
1 answer
How to add a gsl library in window using the compiler tcc?
At the moment I am able to compile and run a basic "Hello World" programme by using the windows command prompt via the command:
tcc.test.c
followed by
test.exe.
where test is the name of the file contaaing the code for the "Hello World"…

Usama
- 11
- 2
-2
votes
1 answer
tcc "lvalue expected" error
Sorry for the probably ridiculous and basic question (I haven't programmed in C since I was a teenager, and I'm 39 now...), but with the code below I get the output from the tcc compiler:
test.c:15: warning: assignment makes pointer from integer…

Lee David O'Dea
- 7
- 6
-5
votes
1 answer
TCC Compiler: Undefined symbol “main”
I am trying to compile a library, but keep getting these errors. Not too
familiar with C and don't know how to get around this. It doesn't create the dll.
c:\>C:\tcc\tcc.exe C:\tcc\examples\hello_dll.c -o C:\tcc\examples\test_win.dll
tcc: error:…

William
- 1
- 1