delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/11/18/13:20:27

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=N4DlG/DDHWYD4xaL
zHltsmUvzk+D+zYb7o+P7P36+KxlwYShlBMUEHbhIAt4yfndHiw7VRHppgCCYWj4
ezApPiw+PcxQyfR1u6YObxWy/WISiCXP0ZR93FKnVvj78tpuO5q0SYslhiJZjIj7
WWI9x3p5x1FCenPY/vvvfrPJUZk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=pPt5iAEZZA+jYlEFnY8LhN
jA1v0=; b=TlG1Sjoniw+8aBE8zN6vkOBNUyinY4B+Vfv6xU9B+LzPw/jMgqJOhS
i+43iRc8TcKyvviNh++xg31cPDSy/gEKqcf0Dmujxr+i5Sw2vgQ82X/ADYQRVIdO
3ing76oknIl2s2wcCpbjIAuqQrk3rxfJ8hu0lzXKYYMu+YyTs9HcY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=LAPACKE_zlange, liblapackea, lapack, sk:liblapa
X-HELO: mail-qt0-f182.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=z2nmg8UftabOcD1uvEpOp64RSjHPDS0zTES3r1KCcQo=; b=TlA+vyoNoMyPP0J+n9TC4Z8I7BGOr8zgyxs/+b4xgbVUYdhdLCevewF/ZDAYJZchEG 8rSvyF62joLjDz4oe9Y30hKeusU7nDwV3SgjuMj0N/MpHvMRu2Irvy8QYOGNrNjrKMrK HOCICjyxOMkKR06UaaQSXnugjvs1amLInwij5f0DL/0AA4ETD8ZztlwDDmb58g3fRVtv MAj0M9xK3DmNwoRBQE8nuPKtn+Ld4on7SrYw3RY2piZ/h6NltjDLaweWJcCJ/Bnce1Da R07HLMaPbVD9/khrTM1AcvQboGN0lzu3xW5cSJn+1jivXm5mEZCCwg0ufg45UvqrpwoW BK8Q==
X-Gm-Message-State: AJaThX4maskjQ2dgx8TkWqrPu81qQ3gSDbDLkpxXyTl6K2fsph44AyxB qfpreDiAVVgFAJTAzvxKCFNHx0Vj
X-Google-Smtp-Source: AGs4zMZ1gKXyuxSa4Fb0KtziQPqSZbvftu4PhfZV7l0yRu3JDhecP6lI6j9k7EpTmHvthfkUJtHmgQ==
X-Received: by 10.200.51.143 with SMTP id c15mr14580660qtb.46.1511029210984; Sat, 18 Nov 2017 10:20:10 -0800 (PST)
Subject: Re: undefined reference to LAPACKE_***
To: cygwin AT cygwin DOT com
References: <fa614009-30e2-64da-f012-7bbcc5c5d3cb AT gmail DOT com> <CAEhDDbAb-2nBvi-7t7aN=9-dFoAEm1=p21-nabyOfZXyEr+dcg AT mail DOT gmail DOT com>
From: Constantinos Zekios <cosoikez AT gmail DOT com>
Message-ID: <26ce98a9-facd-a1df-e0da-84d5d339a1eb@gmail.com>
Date: Sat, 18 Nov 2017 13:20:09 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <CAEhDDbAb-2nBvi-7t7aN=9-dFoAEm1=p21-nabyOfZXyEr+dcg@mail.gmail.com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019