Re: Window API

Posted by Nicolas Di Césaré on
URL: http://quantlib.414.s1.nabble.com/Window-API-tp3125p3127.html

Le sam 31/07/2004 à 19:13, Nguyen Xuan Son a écrit :

> Hi all,
> As you know, from 0.3.7 QuantLib uses Boost. The library defines
>
> #define Handle boost::shared_ptr
>
> But because I intende to use WINAPI , this definition results in a conflict
>
> c:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\PlatformSDK\Include\WinUser.h(3282): error C2751:
> 'boost::shared_ptr' : the name of a function parameter cannot be qualified
>

Hi,

You probably have done a "using namespace QuantLib" or "using
QuantLib::Handle" before including WINAPI headers.

Nicolas  


--
Nicolas Di Césaré <[hidden email]>