Hi all, I am super new to C++ and I am so confused with all the errors I keep getting. I don't seem to be able to locate or figure out how to fix it.
I keep getting
Compiling: main.cpp
Linking console executable: bin/Debug/testomega
Undefined symbols:
"Path::SetJump(int, bool)", referenced from:
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
My code is
testomega.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef testomega_h
#define testomega_h
#include <vector>
usingnamespace std;
class Path {
public:
Path(int N){omega.resize(N);
for (int n=0; n<N; n++) omega[n]=0;}
vector <bool> omega;
void SetJump(int n, bool i);
};
#endif