Re: [eigen] [Eigen] SSE may cause linker error on VS.net |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] [Eigen] SSE may cause linker error on VS.net
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 22 Apr 2009 16:22:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=OEHFIiRltPIE88yXWnEeiQgH4hgQbBKrzMOUiEiSd3w=; b=vhgenB8y6dDmmnrD+wOTWxDzzD0tYFRhJtvZeaI/nAHKfNkmWOuoo5FeUZCrjmcs7/ 3rDLCEVMX+FN0D2gaZRGJ+6nljnvrciTvsGwi2EAqA0N+PyeTZvl1SfFVCFFeSrT8t78 udaT4TQ7JVcUoBvwaedbk+lrH3r7BOSIlFhjM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=J3BF/ti+HpDzGzg+2Ptns9N+Ye/q6NQnSqeYFwDlGxuIjX9Vl7JreK03AfPfCr9ZTt RU29A5vl4AOgUXSQqQFr/AVXQF7hXKKfpNQxV8AOgX451vYOttZzJHzC1jbV+SPHIcQj j6xot+1KfU6hN3aWXHQ0E78YJgSVbPXdWdDgk=
Ah, I see, these functions are of the form
template<> EIGEN_DONT_INLINE.
see in arch/SSE/MathFunctions.h
Should we make them static?
Cheers,
Benoit
2009/4/22 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> bah, we forgot another 'inline' keyword somewhere?
>
> which symbols exactly does the linker complain about? (yes i'm too
> lazy to try myself :p )
>
> Benoit
>
> 2009/4/22 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
>> Hi,
>>
>> the attached example causes a linker error, when SSE is enabled. The
>> problem is that object code for specializations in MathFunctions.h
>> is generated in UnitA and UnitB from the attached example.
>>
>> Does anybody have any easy solutions to fix this?
>>
>> Btw, to reproduce the problem you have to make sure SSE is actually used.
>>
>> Regards,
>> Hauke
>>
>