robotconscience / ofxLibwebsockets

[Deprecated] openFrameworks wrapper of libwebsockets for WebSocket client and server functionality
Other
171 stars 68 forks source link

Build fails whenever I call client's sendBinary method. #75

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi, This may seem really basic, I want to apologize in advance. I'm currently running client_hello_world example, and trying to add sendBinary method to it. I'm putting ofImage as server_binary example does, but when I try to compile it, it throws some errors:

_Undefined symbols for architecture x8664: "void ofxLibwebsockets::Client::sendBinary<ofImage >(ofImage_&)", referenced from: ofApp::keyPressed(int) in ofApp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) _ Am I not suppose to call this method?

Thanks

ghost commented 8 years ago

It works when I use unsigned char and size for the arguments, but fails when I use ofImage.

robotconscience commented 8 years ago

Hello! Totally not a basic question–and 100% an error in my code. For some reason I set up the Server and Client functions differently.

I just pushed an update that fixes it for you. Thanks for calling that out, and sorry for the bug!

ghost commented 8 years ago

thank you!