Boost logo

Boost Users :

Subject: Re: [Boost-users] Inconsistent dll linkage trying to use boost/test as dll
From: McNamara, Nate (nate.mcnamara_at_[hidden])
Date: 2010-04-16 18:20:49


Thanks for the quick response. Your hint plus a few tweaks to the
Makefile and the test compiles again - and much faster.

Unfortunately, when I run the test, I get the following unhelpful
message:

        The application failed to initialize properly (0xc0150002).
Click on OK to terminate the application.

Here is the entirety of my program:

#define BOOST_TEST_MODULE foo
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE(my_test) {
  BOOST_CHECK_EQUAL(4, 4);
}

I got the same error when I tried #define BOOST_TEST_MAIN in place of
BOOST_TEST_MODULE as well; as far as I can tell from the docs they are
equivalent when using the dynamic library variant:

        
http://www.boost.org/doc/libs/1_42_0/libs/test/doc/html/utf/compilation.
html

Thanks again for your help!
Nate

________________________________________

This E-Mail (including any attachments) may contain privileged or confidential information. It is intended only for the addressee(s) indicated above.

The sender does not waive any of its rights, privileges or other protections respecting this information.

Any distribution, copying or other use of this E-Mail or the information it contains, by other than an intended recipient, is not sanctioned and is prohibited.

If you received this E-Mail in error, please delete it and advise the sender (by return E-Mail or otherwise) immediately.

This E-Mail (including any attachments) has been scanned for viruses.

It is believed to be free of any virus or other defect that might affect any computer system into which it is received and opened.

However, it is the responsibility of the recipient to ensure that it is virus free.

The sender accepts no responsibility for any loss or damage arising in any way from its use.

E-Mail received by or sent from RBC Capital Markets is subject to review by Supervisory personnel.

Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

IRS CIRCULAR 230 NOTICE: TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVICE INCLUDED IN THIS COMMUNICATION IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY ANY TRANSACTION OR MATTER.



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