Skip to content

Trouble with event object #9

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

Closed
feus4177 opened this issue Apr 28, 2015 · 3 comments
Closed

Trouble with event object #9

feus4177 opened this issue Apr 28, 2015 · 3 comments

Comments

@feus4177
Copy link

I can't seem to access the public interface of the event object. So far I seem to be able to get everything else to work, I can send and receive messages from the server, but I have to use the [&](string const& name, sio::message::ptr const& data, bool is_ack, sio::message::ptr& ack_resp) signature. I'd like to be able to use the [&](sio::event& ev) signature but when I try to do something like ev.get_messge() my complier throws an error

Undefined symbols for architecture x86_64:
  "sio::event::get_message() const", referenced from:
      _main in test.cpp.o
@melode11
Copy link
Contributor

Checked the code, the get_message definition is right there in socket.cpp file.
Can you show me more detail about the version you used and the development environment?

@melode11
Copy link
Contributor

This is my mistake of using inline functions, they work when integrate with source code, but won't work when integrate with static lib.
Fix here 035ad01

@feus4177
Copy link
Author

Thanks! C++ isn't my forte, I just know enough to get myself in trouble.

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

2 participants