Boost logo

Ublas :

Subject: Re: [ublas] Bindings: second C linkage of overloaded function 'cbdsqr_'
From: George Slavov (gpslavov_at_[hidden])
Date: 2011-04-11 10:09:38


My apologies for sending this again, but the first time (on Friday) it
didn't seem to get posted to the mailing list.

I am trying to get all of these to come together and play
Win XP
MSVC 2008 Express
Boost 1.44
latest bindings from svn
http://svn.boost.org/svn/boost/sandbox/numeric_bindings/boost/numeric/bindings/
Gotoblas, defined BOOST_NUMERIC_BINDINGS_LAPACK_CLAPACK

I have been able to use gotoblas in a separate project that directly
called the functions defined in clapack.h. However, when I try to
include the lapack header (I just include it but I haven't written any
code to use it) from the ublas bindings, I get trouble. The error is
c:\documents and settings\username\my
documents\libs\clapack\clapack.h(512) : error C2733: second C linkage of
overloaded function 'cbdsqr_' not allowed
         c:\documents and settings\username\my
documents\libs\clapack\clapack.h(509) : see declaration of 'cbdsqr_'

There are 100 more of these of these functions that the compiler
complains about, after which it gives up. Unfortunately, MSVC isn't
telling me where this other different C declaration is. It seems all of
them are declared in a file called lapack_names.hpp, but as far as I can
tell, that isn't being included. I have also tied compiling with and
without BIND_FORTRAN_LOWERCASE_UNDERSCORE without any change. Any thoughts?

Best regards,
George Slavov