Boost logo

Boost-Build :

Subject: [Boost-build] Problem with entry points
From: Charles Southey (charles.southey_at_[hidden])
Date: 2009-09-21 19:21:57


Hi,

 

I've built the Math library on Windows using bjam using this...

 

bjam toolset=msvc --with-math --build-type=complete stage

 

I'm using P/invoke to call functions from managed code in C#. Generally it
works fine (e.g. functions 'beta' and 'ibeta' work well) - but some of the
functional entry points don't seem to be found (e.g. 'ibeta_inv'). I've
tried using dumpbin /exports to examine the .dll but it seem to list only a
subset of the total functions. Below are a couple of the c# function
definitions...

 

This one works...

 

        [DllImport("boost_math_tr1-vc90-mt-1_40.dll", EntryPoint = "beta",
ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]

        public static extern double beta(double a, double b);

 

This one doesn't....

        [DllImport("boost_math_tr1-vc90-mt-1_40.dll", EntryPoint =
"ibeta_inv", ExactSpelling = false, CallingConvention =
CallingConvention.Cdecl)]

        public static extern double ibeta_inv(double a, double b, double p);

 

It gives a System.EntryPointNotFoundException saying that the entry point
'ibeta_inv' is not found in boost_math_tr1-vc90-mt-1_40.dll.

 

Can anyone help ?

 

Thanks,

 

Charles



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk