I’m trying to link to a static rubberband-library https://breakfastquay.com/rubberband/ to my openframeworks project. Therefore i started a new project on Windows.
Under project properties->Linker->General->Additional Library Directories
I added the path to where the .lib file is located.
Under project properties->Linker->Input->Additional Dependencies
I added the .lib s name
Under project properties->C/C+±>General->Additional Include Directories
I added the path to where the .h file is located
This procedure worked with an empty C++ project but not with openFrameworks
My ofApp.h:
#pragma once
#include “ofMain.h”
#include “RubberBandStretcher.h”
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
RubberBand::RubberBandStretcher st;
};
I have no syntax errors but if I’m trying to build the openFrameworks project, I’m getting this error:
Error C2280 ‘ofApp::ofApp(void)’: attempting to reference a deleted function
Is there a different way to link static libs in of?
Thanks for your help.