Boost logo

Boost Users :

Subject: Re: [Boost-users] problem with #include <boost/thread.hpp>
From: Pete bartlett (pete_at_[hidden])
Date: 2014-11-04 10:15:23


This is usually Excel-speak for "missing dll dependency" - I'm not totally clear if you're linking against boost.thread statically or dynamically but either way a required dll (possibly boost thread or maybe boost date time, boost system, boost chrono) is not on your PATH.

> On 3 Nov 2014, at 20:14, Grison PG Pierre (External DEXIA-US) <Pierre.Grison_at_[hidden]> wrote:
>
> Hello,
>
> I encounter a problem with the Thread library. The library works fine when I use it in a .exe project. It means it has been correctly built. Then I try to use the same library in an DLL project (so as to build a XLL object thanks to the XLW library). But as soon as I add the line
>
> #include <boost/thread.hpp>
>
> to my project, even if it compile without any problem, I get the following message when I debug my project through Excel:
>
> The file you are trying to open, “mylibrary.xll” is in a different format than specified by the file extension, Verify that the file is not corrupted […]. Do you want to open the file now?
>
> And I can no more use my C++ functions in Excel. Do you have already encounter this problem?
>
> I use VS2010. I have tried both Multi-threaded Debug DLL (/MDd) and Multi-threaded DLL (/MD) options. My solution includes two other static libraries and also with the classic RunInterfaceGenerator XLW-project (the one which is executed when debugging).
>
> Regards,
>
> Pierre
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net