On Wed, 2015-09-09 at 15:07 -0400, Chuck Rolke wrote: > I get the same error with VS2012. Taking a look now... > > ----- Original Message ----- > > From: "Clemens Vasters" <cleme...@microsoft.com> > > To: proton@qpid.apache.org > > Sent: Wednesday, September 9, 2015 2:39:03 PM > > Subject: Linker errors with C++ examples > > > > Trying to build current qpid-proton master on Windows with Visual > > Studio 2015 > > (MSVC 19) and I'm getting linker errors for std::auto_ptr for all > > the > > examples in examples/cpp > > > > The errors all look largely the same and are all about auto_ptr, so > > I just > > give one: > > > > sync_client.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) public: static class std::auto_ptr<class > > proton::message> __cdecl proton::message::create(void)" > > (__imp_?create@message@proton@@SA?AV?$auto_ptr@Vmessage@proton@@@st > > d@@XZ) > > referenced in function "public: __thiscall > > proton::message_value::message_value(void)" > > (??0message_value@proton@@QAE@XZ) > > > > My C++ skills are pretty rusty, so I'm not sure how to unblock > > this. Just me? > >
My bad. I am trying to cater to both C++11 and C++03, but in the process I have created a monster. There is a mismatch in compiler flags passed to the examples and the library resulting in an inconsistent view of what the return value of some functions should be. Will do something more intelligent ASAP.