[petsc-users] Fwd: error linking
Hoang Giang Bui
hgbk2008 at gmail.com
Mon Jul 29 17:10:04 CDT 2013
Forgot to forward to the list.
Ciao again
---------- Forwarded message ----------
From: Hoang Giang Bui <hgbk2008 at gmail.com>
Date: Tue, Jul 30, 2013 at 12:08 AM
Subject: Re: [petsc-users] error linking
To: Matthew Knepley <knepley at gmail.com>
The fact is that I compiled petsc with both metis and parms (I like to use
preconditioner from parms) and I think there are no conflict since no
compilation error is thrown. Now I want to link my program to petsc I have
to link to both. If not it causes more error.
Ciao
Bui
On Tue, Jul 30, 2013 at 12:02 AM, Matthew Knepley <knepley at gmail.com> wrote:
> On Mon, Jul 29, 2013 at 4:41 PM, Hoang Giang Bui <hgbk2008 at gmail.com>wrote:
>
>>
>> Hi
>>
>> When I link my program to petsc. I have this linking error:
>>
>> /opt/petsc/petsc-3.4.2-build1/lib/libmetis.a(error.c.o): In function
>> `errexit':
>> error.c:(.text+0x80): multiple definition of `errexit'
>> /opt/petsc/petsc-3.4.2-build1/lib/libparms.a(sets.o):sets.c:(.text+0x0):
>> first defined here
>>
>
> This looks like a conflict between PARMs and and Metis. Do you need both?
>
> Thanks,
>
> Matt
>
>
>> I have linked to the libraries as the sequence in
>> $PETSC_WITH_EXTERNAL_LIB. I also sent my configure.log (to
>> petsc-maint at mcs.anl.gov<http://www.mcs.anl.gov/petsc/documentation/bugreporting.html>)
>> for your information
>>
>> Ciao
>> Bui
>>
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
--
With Best Regards !
Giang Bui
To learn and to excel
--
With Best Regards !
Giang Bui
To learn and to excel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130730/c6c5ab7f/attachment.html>
More information about the petsc-users
mailing list