W
W
wntkys2021-12-01 21:56:10
C++ / C#
wntkys, 2021-12-01 21:56:10

How to make cglm friends with tiny c compiler?

While poking around in opengl3, I thought about replacing gcc with tcc, and for reasons I don't understand, it started to give an error

tcc: error: undefined symbol 'tanf'
tcc: error: undefined symbol 'sqrtf'

Turning off the headers in turn, I found that the problem was in cglm, but I still didn’t understand what needs to be done so that tcc still builds the project. It looks like I just didn't link some library, but adding the long-suffering -lm did not help in the case of tcc, while building with gcc without it

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question