doom
doom copied to clipboard
redefinition of `memcpy`
Hi, I just tried to follow the build instructions; using V 0.1.21 8373264
I try to call v -lib translated p_enemy.v, get
p_enemy.v:2:12: redefinition of `memcpy`
1| struct C.FILE{}
2| fn C.memcpy(voidptr, voidptr, int)
^
3| fn C.memmove(voidptr, voidptr, int)
4| fn C.memset(voidptr, voidptr, int)
I decided to comment that out, got same with next line.
I commented out all the C declared functions, got
p_enemy.v:36:17: struct names must be capitalized: use `struct Ticcmd_t`
35|
36| struct ticcmd_t {
^
37| forwardmove byte
38| sidemove byte
Any help would be appreciated.
Also, I somehow can't rebuild older version of v (or at least it still tells me the version is V 0.1.21 8373264 even if I go a commit back); so if you can point me to what version of v this works with + how to get it - that would be nice.