error: conflicting types for 'gc_enable' #24095
Labels
Bug
This tag is applied to issues which reports bugs.
Modules: builtin
Bugs and problems, concerning the builtin types in V - array, maps, strings, runes.
Reimplement Feature
This issue is related to significant changes of existing feature.
Describe the bug
Recently, I used Vlang to write an extension for php which depends on
php development codebase
. When I build shared library using this commandv -enable-globals -shared -cg -o test.so .
, errors just occured like below:What should I do to avoid this?
Reproduction Steps
none
Expected Behavior
Maybe Vlang should add prefix for exporting function, like
vweb
, here maybev_gc_enable
?Current Behavior
conflicting types for 'gc_enable'
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.10
Environment details (OS name and version, etc.)
macOS 15.3.2
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: