help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "undefined reference" error message when using mkoctfile to create o


From: Tatsuro MATSUOKA
Subject: Re: "undefined reference" error message when using mkoctfile to create oct file
Date: Mon, 20 Feb 2017 08:42:24 +0900 (JST)

----- Original Message -----

> From: Yan Zhang 
> To: "help-octave> Cc: 
> Date: 2017/2/19, Sun 07:40
> Subject: RE: "undefined reference" error message when using mkoctfile to 
> create oct file
> 
>T hank 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



Is the below helpful for you?

http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use


If your libraries are located current directory, you have to specify it by 
"-L." (. means current directory)  before library flag -l(libname).

Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]