4

我正在RabbitMQ使用AMQP classes. 我正在尝试与AMQPwith打开连接

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

但是我在使用这段代码后遇到了这种错误。我已经从这里AMQP下载了课程

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)

谢谢。

解决方案:

我得到了上面的解决方案。我已将 AMQP 类的所有 .m 文件添加到编译器源代码中,它对我有用。

4

0 回答 0