简体   繁体   English

链接.lib文件Windows Octave

[英]Link .lib file Windows Octave

I am trying to compile some code using Octave and I need to link some .lib files. 我正在尝试使用Octave编译一些代码,并且需要链接一些.lib文件。 I can't seem to get the link to work properly and when I compile I am getting errors about references to functions that don't exist. 我似乎无法正常工作的链接,并且当我编译时,我得到有关不存在的函数的引用错误。 This is what lead me to believe that my links are not working. 这就是让我相信我的链接无效的原因。

this is the command I am running: 这是我正在运行的命令:

mex -v someFile.cpp -IC:\\path\\to\\includes -LC:\\path\\to\\libs -lmylib.lib

I am running Octave 3.2.4 in Windows. 我在Windows中运行Octave 3.2.4。

Thanks. 谢谢。

Figured it out. 弄清楚了。 My path to the libs parameter in that command line string needed to be before the file name. 我在该命令行字符串中libs参数的路径必须在文件名之前。 The following works: 以下作品:

mex -v -IC:\\path\\to\\includes -LC:\\path\\to\\libs someFile.cpp -lmylib.lib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM