[英]link erlang nif on windows
I try to compile a erlang nif plugin on windows using the cygwin gcc. 我尝试使用cygwin gcc在Windows上编译erlang nif插件。 It compiles fine but the linker issues some errors:
编译正常,但链接器发出一些错误:
undefined reference to `_enif_get_int' 对`_enif_get_int'的未定义引用
I'm currently linking against ei.lib and erl_interface.lib. 我目前正在针对ei.lib和erl_interface.lib进行链接。 None of these contain the required symbols.
这些都不包含必需的符号。 Did I miss something?
我错过了什么?
看起来好像您有一个Windows模块(期望符号以下划线开头)链接到cygwin库(通常不使用下划线导出符号)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.