Comments (8)
from amqpcpp.
from amqpcpp.
There is an error during compilation of the file at line 48. The signature of the function is:
char * AMQPMessage::getMessage(uint32_t* length)On line 48, the return statement is:
return '\0'which is a char. And it does not agree with the return type.
I would like to suggest to change it to:
return NULL;
or
return (char *) '\0';
I have this same issue on Ubuntu 18.04.2 LTS using g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 and the following change to line 48 resolved the compilation error:
return (char *) '\0';
Thanks
from amqpcpp.
你用的什么编译器
What compiler do you use?
my compiler version
gcc 版本 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
from amqpcpp.
NULL == '\0' == 0
from amqpcpp.
Different compiler restrictions are not the same.
You can modify the code to adapt to different compilers.
By the way, where are you from?
from amqpcpp.
Yes, I could modify the code to make it work. However, since I am pulling the git directly from within the Docker Container and do the build within, it would be nice that the fix can be done at the source instead of having a custom script to modify the source.
from amqpcpp.
你这代码不严谨啊,不能怪人家编译器,一个是char,一个是char*
from amqpcpp.
Related Issues (20)
- Consumer is not working after some time HOT 2
- strerror in AMQPException::AMQPException in case of AMQP_RESPONSE_LIBRARY_EXCEPTION
- Doesn't this library support custom headers? HOT 1
- How to reduce memory usage after a transfer.
- How to consume multiple queues HOT 1
- Different consumers triggered when message came 1 queue HOT 1
- Is there any way to recover if the rabbitmq connection is lost during consume?
- Can I use the rabbimq federation feature? HOT 1
- Getting "AMQP cannot create socket" error
- Getting "Server connection error 530" error
- How to implement Reply to message using rabbitMQ Cpp library?
- Errors while building HOT 6
- class "amqp_bytes_t_" has no member "c_str" HOT 1
- void AMQPQueue::addEvent( AMQPEvents_e eventType, int (*event)(AMQPMessage*)) only accepts static functions
- How to confirm that the message is sent successfully HOT 2
- win64, static library compile error HOT 1
- Allow declaring a queue without specifying the name HOT 2
- Performance
- Include parameters in Queue despription HOT 1
- Crash observed while trying to fetch AMQP headers in rabbitmq-c 0.11.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqpcpp.