编译时总是出现这个问题,为什么,这么办?
e:\workspace\winnetprog\ex3_3\socketmanager.cpp(129) : fatal error C1010: unexpected end of file while looking for precompiled header directive
希望能被指点一二,先谢谢了。
#include"stdafx.h"
--- 下次记住了
HE HE
94
是的
在你的cpp文件的最开始的位置处添加#include "stdafx.h"
还有一种解决方法:
Project->settings->C/C++->Category->Precompiled Headers->Not Using……
#include "stdafx.h"
#include "stdafx.h"
一定放在第一行,不然第一行其他语句不被编译
#include "stdafx.h"
! Congratulation !
头文件没有加载呀。