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

When compiling on OS X: Undefined symbols for architecture x86_64: #109

Open
EdwardDeaver opened this issue Dec 5, 2019 · 1 comment
Open

Comments

@EdwardDeaver
Copy link

I created a new project using the project generator:

When I compile it I get this error:

Undefined symbols for architecture x86_64:
"ofApp::onMessage(ofxLibwebsockets::Event&)", referenced from:
void ofxLibwebsockets::Client::addListener(ofApp*) in ofApp.o
"ofApp::onConnect(ofxLibwebsockets::Event&)", referenced from:
void ofxLibwebsockets::Client::addListener(ofApp*) in ofApp.o
"ofApp::sendToWS(float, float, int)", referenced from:
ofApp::keyPressed(int) in ofApp.o
"ofApp::onClose(ofxLibwebsockets::Event&)", referenced from:
void ofxLibwebsockets::Client::addListener(ofApp*) in ofApp.o
"ofApp::onIdle(ofxLibwebsockets::Event&)", referenced from:
void ofxLibwebsockets::Client::addListener(ofApp*) in ofApp.o
"ofApp::onOpen(ofxLibwebsockets::Event&)", referenced from:
void ofxLibwebsockets::Client::addListener(ofApp*) 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)

@crecord
Copy link

crecord commented Dec 5, 2019

I used the project generator on both OF 10.1 and 11.0 in OSX with this addon and all compiled without an issue. I am on High Sierra 10.12.6 using a super old version of xcode.

I would check your deployment target and make sure it is correct and check that compile sources include all necessary files:

Screen Shot 2019-12-05 at 4 30 07 PM

If none of those suggestions work, perhaps it is a Mojave issue... what version of OSX are you on?

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