Replies: 3 comments
-
msvcrt.dll doesn't export '_ftelli64' and tcc doesn't implement it
'_ftelli64' is used by 'cgltf' which is included in 'rmodels.c' you can replace the include with something like this:
^ in which case your file size will be limited to a 32-bit integer, but it compiles |
Beta Was this translation helpful? Give feedback.
-
You can use _fileno and _telli64, with tcc. _fileno for getting a file descriptor (an int) from your Something like this: #if defined(_WIN32) && defined(__TINYC__)
#define _ftelli64(stream) (_telli64(_fileno(stream)))
#endif |
Beta Was this translation helpful? Give feedback.
-
mingw-w64 headers do expose these functions, I managed to get it working by copying headers from a mingw-w64 gcc installation over to tcc. Somewhat of a hack but I did not see a better way. |
Beta Was this translation helpful? Give feedback.
-
I've been having trouble to compile a few coding from the raylib 'example' folder.
It always show this error:
tcc: error: undefined symbol '_ftelli64'
I even compile in it the original folder of raylib when we first installing the raylib.
One of the program I try is the models_cubicmap.c
Beta Was this translation helpful? Give feedback.
All reactions