Hey Josep, I spent like a week or so racking my brains trying to run the C++ Examples of qpid on Windows, but the farthest I could get was exactly where you did. It seems like there are some changes that need to be made above the project generation, otherwise it's quite unlikely that we manage to make this last version work on Windows. There are lots of recursive dependencies among the qpid classes that always get you to compilation errors.
did anyone make these Examples run? is there anyone who knows if any of the least older versions of Qpid did work on Windows? We've been asked by our client to have a demo of the software as soon as possible running under Windows and this is delaying our work so much. Josep, if you manage to make it work, please let me know. regards, Marc. 2009/1/30 Josep Maria Bernabé Gisbert <[email protected]> > > Hi everyone, > > I've been told to make qpid work in windows. I've been able to make the > broker run but not a client. As a start point, I've modified > declare_queues.cpp file erasing all code except the includes. The entire > example code is attached below: > > #include "qpid\client\Connection.h" > #include "qpid\client\Session.h" > > int main(int argc, char* argv[]) > { > std::cout << "Hola" << std::endl; > > return 0; > } > > I've included boost, qpid and qpid\gen directories as included sources in > Properties-->Configuration Properties-->C/C++-->General, > "_DEBUG;WIN32;_WINDOWS;_CRT_NONSTDC_NO_WARNINGS;CONF_FILE=\"qpidc.conf\";MODULE_DIR=\".\";NOMINMAX;WIN32_LEAN_AND_MEAN" > in Properties-->Configuration Properties-->C/C++-->Preprocessor and > qpidclientsd.lib in Properties-->Configuration Properties-->Linker-->Input > (I'm translating that names from spanish, so, they can differ). The example > project is a Win32 aplication without precompiled headers. > > I get the following linking error: > > prueba2.obj : error LNK2019: símbolo externo "public: static class > qpid::sys::AbsTime __cdecl qpid::sys::AbsTime::FarFuture(void)" > (?farfut...@abstime@s...@qpid@@sa?av...@xz) sin resolver al que se hace > referencia en la función "void __cdecl qpid::sys::`dynamic initializer for > 'FAR_FUTURE''(void)" (??__efar_fut...@sys@qpid@@YAXXZ) > > AbsTime seems to be defined in the "common" part but, if I add > qpidcommonsd.lib, I get a lot of linking errors related on redifined > symbols. > > Thanks in advance, > > Josep. > > -------------------------------------------------------------------- > --------- --- > | | | | > --- --- | | > -------- | | | | > | | | | | | > -------- --- --- > Josep Maria Bernabé Instituto Tecnológico de Informática > Email: [email protected] Universitat Politècnica de València > Telf: 96 3877069 Camino de Vera s/n 46071 València > -------------------------------------------------------------------- > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] >
