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@dexia-us.com> 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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users