TCC is a tiny C compiler which enables you to use C as scripting language.
Questions tagged [tcc]
117 questions
1
vote
4 answers
Examples of compiling win32 api c programs (through command line) on windows
Attempting to do something very simple - compile basic win 32 c programs through windows cmd. This is something I should be able to do myself, but I am just so stuck here..
I keep stumbling into weird problems, vague errors. I dunno whether I…

gyaani_guy
- 3,191
- 8
- 43
- 51
0
votes
1 answer
How can i get code.c's runtime by TCC
I created a web-application to compile and run code. How can I check if a user enters an infinite loop. I want to check at runtime if the code runs for longer than 20 seconds and then abort the computation.

user1044942
- 29
- 3
0
votes
1 answer
Long Long, decimals and input validation in C
Currently I'm using TCC as it's the easiest thing to get setup on windows. Simply unzip and you're ready to go. However I'm open to other compilers, GCC, whatever microsoft has on offer etc.
My problem is that I need to validate the input to a size…

TheIronKnuckle
- 7,224
- 4
- 33
- 56
0
votes
1 answer
Tiny C Compiler: Undefined symbol "main" when main is defined?
I have a main function, but when tcc goes to link everything together, it says its undefined. Why is this?
I'm using a python build script, and arguments are passed as lists:
['v:/exe/tcc/tcc.exe', '-odist/***.exe', '-Llib/', '-llua5.1', '-lsoil',…

Colonel Thirty Two
- 23,953
- 8
- 45
- 85
0
votes
3 answers
OpenGL + Tiny C Compiler: ", expected"
I am working on a program and am using Tiny C Compiler with SDL and OpenGL. TCC doesn't include headers for opengl, so I tried copying them from both Visual C++ and MinGW. Both of them fail to compile with the following…

Colonel Thirty Two
- 23,953
- 8
- 45
- 85
0
votes
1 answer
Running ex1 with TCC under OSX?
I'm trying TCC under OS X. I had to make some modifications following this answer to make it compile.
Trying to run the ex1.c included with the source I get:
In file included from ./ex1.c:3:
In file included from…

Nikso
- 1,124
- 8
- 7
0
votes
1 answer
libtcc unresolved external symbol errors
Trying to make libtcc work. Trying to run hello world example of libtcc library: https://bellard.org/tcc/
I downloaded the tcc-0.9.27-win64-bin.zip version.
I created C++ console application project in Visual Studio, added:
//…

KulaGGin
- 943
- 2
- 12
- 27
0
votes
1 answer
TCC and winsock.h
I have already read Tiny C Compiler (TCC) and winsock?, but I still can't compile sockets with TCC, because when I try
tiny_impdef winsock.dll -o winsock.def
tiny_impdef responds:
Not a PE file: C:\WINDOWS\system32\winsock.dll
So how can I do to…

chubakueno
- 565
- 4
- 18
0
votes
0 answers
How to get the hidden fields from any entity in TCC
I'm looking for these two fields: JobInformation,DescriptionExternalHTML and JobInformation,DescriptionInternalHTML. In which Recruiting module and entity can I find these fields?
I have searched for these fields…
0
votes
1 answer
Simple batch file fails with TCC/LE
I found a problem with some batch files not written by me when executed in TCC/LE, while the same ones run flawlessly with CMD.EXE (Windows XP up to Windows 11 versions).
Maybe the problem is very silly, but I can't spot it, even if I localized it…

LuC
- 347
- 2
- 10
0
votes
0 answers
Why doesn't @altname with a variable work? - TCC
This is a TCC code.
I wanted my .BAT file to return a shortened name for a specified file (with @ALTNAME), but I don't want it to return the whole path of the file. My solution doesn't seem to be working. Can someone tell me what am I doing wrong?
I…

adriana
- 1
- 1
0
votes
0 answers
TinyC Compiler "include file pthread.h not found"
Having read the changelog and some mail archives, pthread is supposed to be supported by TinyC Compiler (TCC) since 0.9.26
https://bellard.org/tcc/changelog.html
version 0.9.26:
User interface:
- -pthread option (same as -D_REENTRANT -lpthread)…

LazerBlazer
- 57
- 6
0
votes
0 answers
I want to export candidate offer letter as pdf using taleo connect client
I want to export candidate offer letter as pdf using taleo connect client. How is it possible
0
votes
1 answer
tcc: undefined symbol '_MessageBoxA@16' error on my c code
I tried to include with also but it shows: tcc: undefined symbol '_MessageBoxA@16' when i use my only Pocket Edition TinyCCompiler. does anybody know why?
#include
#include
#include…

OwerFlowingDev
- 5
- 6
0
votes
1 answer
Beginner issue when linking 7z LZMA SDK to dietlibc
I'm using tcc on sabotage. I use below to link LZMA to dietlibc (the start.o and libc.a from dietlibc are in current path):
tcc -nostdlib start.o LzmaUtil.o Alloc.o LzFind.o LzmaEnc.o LzmaDec.o 7zFind.o 7zStream.o -L. -lc
Linking succeeds without…