@samuset wrote:
Hi,
I am trying to make the graphics in my sketch smoother as per the method detailed here, but I get the following errors. I pasted my
main.cppunderneath. I have theofAppGlutWindow.hin openFrameworks/app, so that’s not the problem.Undefined symbols for architecture x86_64: "ofAppGlutWindow::ofAppGlutWindow()", referenced from: _main in main.o "ofAppGlutWindow::loop()", referenced from: void ofMainLoop::addWindow<ofAppGlutWindow>(std::__1::shared_ptr<ofAppGlutWindow>) in main.o "ofAppGlutWindow::setGlutDisplayString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from: _main in main.o "vtable for ofAppGlutWindow", referenced from: _main in main.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)my main.cpp:
#include "ofMain.h" #include "ofApp.h" #include "ofAppGlutWindow.h" int main( ) { ofAppGlutWindow window; window.setGlutDisplayString( "rgba double samples>=4" ); ofSetupOpenGL( &window, 640,640,OF_WINDOW ); ofRunApp( new ofApp() ); }
Posts: 3
Participants: 2