C-Chads / tinycc

C-Chads Maintained fork of Tiny C Compiler, regularly pulled from https://repo.or.cz/w/tinycc.git
GNU Lesser General Public License v2.1
77 stars 8 forks source link

Linking static libraries #1

Closed phillvancejr closed 2 years ago

phillvancejr commented 2 years ago

Hello, I've been trying our your fork and I'm trying to link with a static library but TCC is saying that the symbols aren't found. I'm having this issue both with the tcc executable and when using libtcc.h and tcc_add_file, any ideas on how I can get this to work?

phillvancejr commented 2 years ago

interesting, I'll look out for SIMD code. And by Static linking I don't mean like a completely statically linked binary on Linux, I just meant linking with an archive/.lib file. Dynamic libraries work fine but not archives, however I think I came across something that said the static library needs to be compiled by tcc. Thanks for your time, I'll keep looking. Regards