Linker command failed with exit code 1 (use -v to call the call) using RabbitMQ

I am using RabbitMQ with AMQP classes . I am trying to open a connection with AMQP using

 AMQPConnection *t=[[AMQPConnection alloc]init]; [t connectToHost:@"localhost" onPort:5672]; [t release]; 

But I get this error after using this code. I downloaded AMQP classes from here

 Undefined symbols for architecture i386: "_OBJC_CLASS_$_AMQPConnection", referenced from: objc-class-ref in HomePageController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Thanks.

Decision:

I got the solution above. I added all my .m AMQP class files to the compiler source and its work for me.

+4
source share

All Articles