Witam!
Pokazuje mi się taki błąd jak w tytule po wpisaniu takiego kodu
main.cpp
#include <iostream>
#include "Test2.h"
using namespace std;
int main()
{
Obiekt Test;
Test.Name = "Test";
Test1();
return 0;
}
Test2.h
#ifndef TEST2_H_INCLUDED
#define TEST2_H_INCLUDED
#include <iostream>
using namespace std;
class Obiekt
{
string Name;
};
void Test1();
#endif // TEST2_H_INCLUDED
Test3.cpp
#include "Test2.h"
void Test1()
{
cout << Test.Name;
}