Open BreathXV opened 4 months ago
This issue could be slightly related to #21555
try passing -ldflags -lm
This issue could be slightly related to #21555
How so? The modules are different, the platform is different, the error is different too 🤔 .
Describe the bug
Encountering a
TCC
error that "Library 'm' not found". There is many warnings before the error appears which may be leading to it. My project has two files currently,database.v
which handles interactions with the database andmain.v
which holds the endpoints and handles the requests/responses. I have attached the database code below and the repository is linked below too to see the full project.I was having previous troubles getting it to compile but I was given support in the V Discord server which removed that error (could not find C compiler) and since I have gotten able to run using TCC, I am now encountering this problem.
https://github.com/BreathXV/ReforgerWhitelistAPI/tree/v
Reproduction Steps
Expected Behavior
For the server to initiate and starting listening for requests.
Current Behavior
Possible Solution
N/A
Additional Information/Context
Previous error and fix shown below:
V version
V 0.4.6 cc92dbc
Environment details (OS name and version, etc.)
V full version: V 0.4.6 8c24936.cc92dbc OS: windows, Microsoft Windows 11 Home v22631 64-bit Processor: 16 cpus, 64bit, little endian,
getwd: D:\repos\ReforgerWhitelistAPI vexe: D:\v\v.exe vexe mtime: 2024-06-03 19:41:18
vroot: OK, value: D:\v VMODULES: OK, value: C:\Users\kiera.vmodules VTMP: OK, value: C:\Users\kiera\AppData\Local\Temp\v_0
Git version: git version 2.45.1.windows.1 Git vroot status: weekly.2024.22-34-gcc92dbc8 .git/config present: true
CC version: Error: 'cc' is not recognized as an internal or external command, operable program or batch file.
thirdparty/tcc status: thirdparty-windows-amd64 b425ac82