Hi,

I want to start my simple C++ program (see below) that tries to open a connection and get following output:
open connection
Unknown protocol: tcp (qpid/client/Connector.cpp:52)

I used static libraries with following link settings:
-static -lqpidclient -static -lqpidcommon -lm -lrt -ldl -luuid -lpthread -lboost_filesystem -lboost_program_options

My environment is:
- CentOS 5.5 /x86_64
- gcc/g++ 4.1.2
- qpid 0.8

What is wrong here?

Regards,
Grzegorz


#include <qpid/client/Connection.h>
#include <qpid/client/Session.h>

#include <iostream>


using namespace qpid::client;
        
using namespace std;

int main(int ragc, char** argv) {


        Connection connection;

        try {

                cout << "open connection" << endl;
                connection.open("127.0.0.1", 5672);

                cout << "new session" << endl;

                Session session = connection.newSession();

                cout << "close connection" << endl;

                connection.close();
        } catch (const std::exception& ex) {
                cerr << ex.what() << endl;
        }
}

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to