[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: "undefined reference" error message when using mkoctfile to create o
From: |
Yan Zhang |
Subject: |
RE: "undefined reference" error message when using mkoctfile to create oct file |
Date: |
Sat, 18 Feb 2017 14:40:01 -0800 |
Thank you for the help. I tried different formats of the mkoctfile command and
here are the messages I got (please note that a file "NewpDll.lib" is in the
same folder as PowerMeter.cc):
>> mkoctfile ("PowerMeter.cc", "-l NewpDll.lib")
c:/users/yan/downloads/octave-4.0.0_0/octave-4.0.0/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -l Ne
wpDll.lib
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status
warning: called from
mkoctfile at line 171 column 5
>> mkoctfile PowerMeter.cc -lNewpDll
c:/users/yan/downloads/octave-4.0.0_0/octave-4.0.0/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lNew
pDll
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status
warning: called from
mkoctfile at line 171 column 5
>> mkoctfile PowerMeter.cc -l NewpDll
mkoctfile: unrecognized argument NewpDll
warning: mkoctfile exited with failure status
warning: called from
mkoctfile at line 171 column 5
Thanks,
Yan
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Friday, February 17, 2017 6:55 PM
To: Yan Zhang; Marco Atzeri; address@hidden
Subject: RE: "undefined reference" error message when using mkoctfile to create
oct file
octave for windows is built by GCC.
Your linker option is perhaps wrong.
-l NewpDll.lib might be modified to
-lNewpDll
Tatsuro