qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Swiatek <g.swia...@teles.at>
Subject Unknown protocol: tcp
Date Tue, 01 Feb 2011 16:53:00 GMT
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:users-subscribe@qpid.apache.org


Mime
View raw message