Witam, mam problem z kompilacją programów z projekcie.
Nawet przy najprostszym programie:
#include
using namespace std;
int main(void)
{
int x;
cin >> x;
cout << x;
return 0;
}
dostaję komunikaty, że są błędy:
1>------ Build started: Project: project, Configuration: Debug Win32 ------
1> project.cpp
1>c:\users\darek\documents\visual studio 2012\projects\project\project\project.cpp(4): warning C4627: '#include ': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>c:\users\darek\documents\visual studio 2012\projects\project\project\project.cpp(20): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
dodawałem bibliotekę #include “stdafx.h”, ale to nic nie pomogło…
sprawdzałem na http://Ideone.com i jest wszystko w porządku
Jaka może być tego przyczyna?