the problem seems to be with the compiler I'm using though I'm fairly new to programming so I'm not sure how to mess with that(I'm using VSCode on Mac OSX)
This is my header:
#ifndef STICKMAN_H
#define STICKMAN_H
class Stickman{
public:
Stickman();
};
#endif
This is my source file:
#include "stickman.h"
#include <iostream>
using namespace std;
Stickman::Stickman(){
cout << "Hello\n";
}
This is my main:
#include "stickman.h"
#include <iostream>
int main(){
Stickman figure;
}
This is the ERROR message in the terminal:
Alexandres-MBP:Game alexandrecarqueja$ cd
"/Users/alexandrecarqueja/Desktop/Game/" && g++ main.cpp -o main && "/Users/alexandrecarqueja/Desktop/Game/"main
Undefined symbols for architecture x86_64:
"Stickman::Stickman()", referenced from:
_main in main-d38641.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)