Boost logo

Boost Users :

Subject: [Boost-users] problem with #include <boost/thread.hpp>
From: Grison PG Pierre (External DEXIA-US) (Pierre.Grison_at_[hidden])
Date: 2014-11-03 15:14:07


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 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