Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while building #85

Open
rioramos opened this issue Aug 27, 2019 · 6 comments
Open

Errors while building #85

rioramos opened this issue Aug 27, 2019 · 6 comments

Comments

@rioramos
Copy link

rioramos commented Aug 27, 2019

While trying to build w/wo Cmake i get an error

/home/vmuser/amqpcpp/src/AMQPQueue.cpp: In member function ‘void AMQPQueue::setConsumerTag(std::string)’:
/home/vmuser/amqpcpp/src/AMQPQueue.cpp:392:21: error: no match for ‘operator=’ (operand types are ‘amqp_bytes_t’ and ‘std::string {aka std::basic_string}’)
this->consumer_tag = consumer_tag;

My compiler is g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)

The versions of rabbitmq-c i tried are 0.8.0 and 0.9.0

@reunanen
Copy link
Collaborator

reunanen commented Aug 27, 2019

@rioramos Same problem here with akalend/master.

Can you try my develop branch? Should work (or at least shouldn't have that problem). Also has some other improvements. And yep, there's a PR already.

@Jabotical
Copy link

That develop branch fixed all the compilation errors for me. Thanks reunanen! I was debating whether I'd rather try to fix those myself, or give up and go with a different library.

@loki2040
Copy link

Is this repository still managed? I am wondering as the master branch has still the problem of not being able to compile.

@reunanen
Copy link
Collaborator

@loki2040 I have no idea, but feel free to use my develop branch. If it has issues, please report and I'll have a look. I'm actively using it in real-life projects, so I want to keep it in shape.

@alex-st-i
Copy link

Hi, try to use develop branch but stil have an error message:

[alex@localhost amqpcpp]$ make
g++ -Wall -I/usr/local/include -L/usr/local/lib -Iinclude/ -c -o src/AMQP.o src/AMQP.cpp
g++ -Wall -I/usr/local/include -L/usr/local/lib -Iinclude/ -c -o src/AMQPBase.o src/AMQPBase.cpp
g++ -Wall -I/usr/local/include -L/usr/local/lib -Iinclude/ -c -o src/AMQPException.o src/AMQPException.cpp
g++ -Wall -I/usr/local/include -L/usr/local/lib -Iinclude/ -c -o src/AMQPMessage.o src/AMQPMessage.cpp
src/AMQPMessage.cpp: В функции-члене «char AMQPMessage::getMessage(uint32_t)**»:
src/AMQPMessage.cpp:48:9: ошибка: invalid conversion from «char» to «char* » -fpermissive
return '\0';
^~~~
make: *** [<встроенное>: src/AMQPMessage.o] Ошибка 1

@reunanen
Copy link
Collaborator

@alex-st-i That looks like the master branch to me. Did you say git checkout develop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants