help-octave
[Top][All Lists]
Advanced

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

RE: RE: "undefined reference" error message when using mkoctfile to crea


From: Yan Zhang
Subject: RE: RE: "undefined reference" error message when using mkoctfile to create oct file
Date: Tue, 21 Feb 2017 14:21:41 -0800

I tried the "-L." flag but got the same message:

---------------------------------------------
>> mkoctfile PowerMeter.cc -L. -lusbdll
./usbdll.lib: error adding symbols: File in wrong format
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status
warning: called from
    mkoctfile at line 171 column 5
---------------------------------------------

Thanks,


-----Original Message-----
From: address@hidden [mailto:address@hidden 
Sent: Tuesday, February 21, 2017 10:57 AM
To: Yan ; address@hidden
Subject: Re: RE: "undefined reference" error message when using mkoctfile to 
create oct file



--- address@hidden wrote:
> 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 
> 
> 
> -----Original Message-----
> From: Tatsuro MATSUOKA [mailto:address@hidden
> Sent: Sunday, February 19, 2017 3:42 PM
> To: Yan ; address@hidden
> Subject: Re: "undefined reference" error message when using mkoctfile 
> to create oct file
> 
> ----- Original Message -----
> 
> > From: Yan 
> > 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 ; 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
> 

-l usbdll.lib is incorrect,

-lusbdll 

Tatsuro



reply via email to

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