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]

Reply via email to