[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
- RE: "undefined reference" error message when using mkoctfile to create oct file, address@hidden, 2017/02/17
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, address@hidden, 2017/02/19
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, address@hidden, 2017/02/21
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, address@hidden, 2017/02/21
- RE: RE: "undefined reference" error message when using mkoctfile to create oct file, Yan Zhang, 2017/02/21
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, Tatsuro MATSUOKA, 2017/02/21
- RE: RE: "undefined reference" error message when using mkoctfile to create oct file, Yan Zhang, 2017/02/21
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, Tatsuro MATSUOKA, 2017/02/21
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, Tatsuro MATSUOKA, 2017/02/22
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, Tatsuro MATSUOKA, 2017/02/22