简体   繁体   中英

Link .lib file Windows Octave

I am trying to compile some code using Octave and I need to link some .lib files. 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.

Thanks.

Figured it out. My path to the libs parameter in that command line string needed to be before the file name. The following works:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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