[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: |
Tue, 21 Feb 2017 08:19:25 -0800 |
I tried adding the "-L" flag but still didn't get through. Here is what I got:
-------------------------------------------------------
>> mkoctfile PowerMeter.cc -L -l usbdll.lib
usbdll.lib: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status
warning: called from
mkoctfile at line 171 column 5
-------------------------------------------------------
I guess the "lib" file I created using Visual Studio 2015 is not recognized by
mkoctfile.
Thanks,
Yan Zhang | Sr. Product Characterization Engineer | OmniVision Technologies,
Inc. | 4275 Burton Drive | Santa Clara, CA 95054
t: 408.567.4723 | email: address@hidden | web: www.ovt.com
This e-mail and any attachments thereto may contain private, confidential, and
privileged material for the sole use of the intended recipient. If you are not
the intended recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in error,
please contact the sender at OmniVision Technologies, Inc. immediately and
permanently delete the original and any copies of this e-mail and any
attachments thereto.
-----Original Message-----
From: Tatsuro MATSUOKA [mailto:address@hidden
Sent: Sunday, February 19, 2017 3:42 PM
To: Yan Zhang; address@hidden
Subject: Re: "undefined reference" error message when using mkoctfile to create
oct file
----- 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
- Re: RE: "undefined reference" error message when using mkoctfile to create oct file, Tatsuro MATSUOKA, 2017/02/23