Undeclared type longer than 63 characters #19783
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
since TCC does not support symbols longer than 63 characters, V strips out symbol name to 63 characters
Reproduction Steps
Expected Behavior
Normal compile without errors
Current Behavior
Possible Solution
If using TCC and symbol is longer than 63 characters, rename symbol to
vc_t<sequence number>_<hash of symbol in hex>
Additional Information/Context
I'm trying to make simple discord bot using interactions
V version
V 0.4.2 140c838
Environment details (OS name and version, etc.)
full version: V 0.4.2 4e6186e.140c838
OS: windows, Microsoft Windows 11 Pro v22000 64-bit
Processor: 12 cpus, 64bit, little endian,
getwd: D:\Games\Proekti\V\interactions
vexe: D:\Games\Proekti\V\v\v.exe
vexe mtime: 2023-11-06 10:38:17
vroot: OK, value: D:\Games\Proekti\V\v
VMODULES: OK, value: C:\Users\mclr.vmodules
VTMP: OK, value: C:\Users\mclr\AppData\Local\Temp\v_0
Git version: git version 2.37.0.windows.1
Git vroot status: weekly.2023.44-63-g140c838f
.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 e90c2620
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: