I'm able to compile single file code but not anything with separate file classes. This works in code blocks, but not sublime text. I couldn't find any information on this topic so I'm asking here.
Here is my code (all in one folder):
main.cpp:
#include <iostream>
#include "Cat.h"
using namespace std;
int main()
{
Cat c;
cout << "Hello world!" << endl;
return 0;
}
Cat.cpp:
#include <iostream>
#include "Cat.h"
using namespace std;
Cat::Cat()
{
cout << "i am cat bboiii";
}
Cat.h:
#ifndef CAT_H
#define CAT_H
class Cat
{
public:
Cat();
};
#endif // CAT_H