* undefined reference to LAPACKE_***
@ 2017-11-18 16:24 Constantinos Zekios
2017-11-18 17:56 ` Csaba Raduly
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Constantinos Zekios @ 2017-11-18 16:24 UTC (permalink / raw)
To: cygwin
Hello everybody!
 I recently installed cygwin trying to compile my cpp code (it is build
under linux) under windows. I am using LAPACKE (the c wrapper to run all
the lapack libraries) in my code, but it seems that I am not able to
install the packages in cygwin. I have installed lapack, as well as
blas. Does anybody know how to install liblapacke.a, liblapacke.dll.a?
The errors that I am getting are of the form: undefined reference to
'LAPACKE_zlange'.
Regards,
 Constantine
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: undefined reference to LAPACKE_***
2017-11-18 16:24 undefined reference to LAPACKE_*** Constantinos Zekios
@ 2017-11-18 17:56 ` Csaba Raduly
2017-11-18 18:20 ` Constantinos Zekios
2017-11-18 17:57 ` René Berber
2017-11-18 18:36 ` Marco Atzeri
2 siblings, 1 reply; 6+ messages in thread
From: Csaba Raduly @ 2017-11-18 17:56 UTC (permalink / raw)
To: cygwin list
Hi Constantinos,
On Sat, Nov 18, 2017 at 5:24 PM, Constantinos Zekios wrote:
> Hello everybody!
>
> I recently installed cygwin trying to compile my cpp code (it is build
> under linux) under windows. I am using LAPACKE (the c wrapper to run all the
> lapack libraries) in my code, but it seems that I am not able to install the
> packages in cygwin. I have installed lapack, as well as blas. Does anybody
> know how to install liblapacke.a, liblapacke.dll.a?
>
> The errors that I am getting are of the form: undefined reference to
> 'LAPACKE_zlange'.
That sounds like the linker complaining about not finding a symbol,
*not* about a missing library file. If that's the case, installing
libraries will not help you. Just as well, because there's no Cygwin
package containing liblapacke.a :
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=liblapacke&arch=x86_64
(Found 0 matches for liblapacke)
What was the linker invocation (command line) that generated the error message?
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: undefined reference to LAPACKE_***
2017-11-18 16:24 undefined reference to LAPACKE_*** Constantinos Zekios
2017-11-18 17:56 ` Csaba Raduly
@ 2017-11-18 17:57 ` René Berber
2017-11-18 18:36 ` Marco Atzeri
2 siblings, 0 replies; 6+ messages in thread
From: René Berber @ 2017-11-18 17:57 UTC (permalink / raw)
To: cygwin
On 11/18/2017 10:24 AM, Constantinos Zekios wrote:
> Â I recently installed cygwin trying to compile my cpp code (it is build
> under linux) under windows. I am using LAPACKE (the c wrapper to run all
> the lapack libraries) in my code, but it seems that I am not able to
> install the packages in cygwin. I have installed lapack, as well as
> blas. Does anybody know how to install liblapacke.a, liblapacke.dll.a?
>
> The errors that I am getting are of the form: undefined reference to
> 'LAPACKE_zlange'.
Try installing liblapack-devel.
--
R. Berber
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: undefined reference to LAPACKE_***
2017-11-18 17:56 ` Csaba Raduly
@ 2017-11-18 18:20 ` Constantinos Zekios
2017-11-20 9:08 ` Csaba Raduly
0 siblings, 1 reply; 6+ messages in thread
From: Constantinos Zekios @ 2017-11-18 18:20 UTC (permalink / raw)
To: cygwin
Hi Csaba,
 so I am using a cmake and it is of the format:
set(LAPACK_LIB "/usr/lib/liblapack.so")
set(LAPACK_LIB "/usr/lib/liblapacke.so")
set(BLAS_LIB "/usr/lib/libblas.so") for my ubuntu system,
which I changed it to:
set(LAPACK_LIB "/usr/lib/liblapack.a")
set(BLAS_LIB "/usr/lib/libblas.a") for the cygwin.
If I set the set(LAPACK_LIB "/usr/lib/liblapacke.a") it complains that
it doesn't exist, since as you also said this package doesn't exist in
Cygwin. So in my code I am calling at some point functions like the
LAPACKE_zlange and there is the issue. I guess I cannot use them in
Cygwin, and I will have to change it to FORTRAN calls
On 11/18/2017 12:55 PM, Csaba Raduly wrote:
> Hi Constantinos,
>
> On Sat, Nov 18, 2017 at 5:24 PM, Constantinos Zekios wrote:
>> Hello everybody!
>>
>> I recently installed cygwin trying to compile my cpp code (it is build
>> under linux) under windows. I am using LAPACKE (the c wrapper to run all the
>> lapack libraries) in my code, but it seems that I am not able to install the
>> packages in cygwin. I have installed lapack, as well as blas. Does anybody
>> know how to install liblapacke.a, liblapacke.dll.a?
>>
>> The errors that I am getting are of the form: undefined reference to
>> 'LAPACKE_zlange'.
> That sounds like the linker complaining about not finding a symbol,
> *not* about a missing library file. If that's the case, installing
> libraries will not help you. Just as well, because there's no Cygwin
> package containing liblapacke.a :
> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=liblapacke&arch=x86_64
> (Found 0 matches for liblapacke)
>
> What was the linker invocation (command line) that generated the error message?
>
> Csaba
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: undefined reference to LAPACKE_***
2017-11-18 16:24 undefined reference to LAPACKE_*** Constantinos Zekios
2017-11-18 17:56 ` Csaba Raduly
2017-11-18 17:57 ` René Berber
@ 2017-11-18 18:36 ` Marco Atzeri
2 siblings, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2017-11-18 18:36 UTC (permalink / raw)
To: cygwin
On 18/11/2017 17:24, Constantinos Zekios wrote:
> Hello everybody!
>
> Â I recently installed cygwin trying to compile my cpp code (it is build
> under linux) under windows. I am using LAPACKE (the c wrapper to run all
> the lapack libraries) in my code, but it seems that I am not able to
> install the packages in cygwin. I have installed lapack, as well as
> blas. Does anybody know how to install liblapacke.a, liblapacke.dll.a?
>
> The errors that I am getting are of the form: undefined reference to
> 'LAPACKE_zlange'.
>
> Regards,
>
> Â Constantine
>
lapacke interface is not provided in the cygwin package,
only lapack one.
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: undefined reference to LAPACKE_***
2017-11-18 18:20 ` Constantinos Zekios
@ 2017-11-20 9:08 ` Csaba Raduly
0 siblings, 0 replies; 6+ messages in thread
From: Csaba Raduly @ 2017-11-20 9:08 UTC (permalink / raw)
To: cygwin list
Hi Zekios,
On Sat, Nov 18, 2017 at 7:20 PM, Constantinos Zekios wrote:
> Hi Csaba,
> so I am using a cmake and it is of the format:
>
> set(LAPACK_LIB "/usr/lib/liblapack.so")
> set(LAPACK_LIB "/usr/lib/liblapacke.so")
> set(BLAS_LIB "/usr/lib/libblas.so") for my ubuntu system,
>
> which I changed it to:
>
> set(LAPACK_LIB "/usr/lib/liblapack.a")
> set(BLAS_LIB "/usr/lib/libblas.a") for the cygwin.
>
> If I set the set(LAPACK_LIB "/usr/lib/liblapacke.a") it complains that it
> doesn't exist, since as you also said this package doesn't exist in Cygwin.
> So in my code I am calling at some point functions like the LAPACKE_zlange
> and there is the issue. I guess I cannot use them in Cygwin, and I will have
> to change it to FORTRAN calls
Please don't top-post on this mailing list. (
https://cygwin.com/acronyms/#TOFU )
I was asking for the linker command line, not the content of the cmake files.
You can get this by running
make VERBOSE=1
or
ninja -v
depending on the generator you chose.
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-11-20 9:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-18 16:24 undefined reference to LAPACKE_*** Constantinos Zekios
2017-11-18 17:56 ` Csaba Raduly
2017-11-18 18:20 ` Constantinos Zekios
2017-11-20 9:08 ` Csaba Raduly
2017-11-18 17:57 ` René Berber
2017-11-18 18:36 ` Marco Atzeri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).