level 11
gameloftyou
楼主
有时创建工程时可以自动生成,不过我想手动添加,如何做?
比如:
=================================
StdAfx.h头文件内容:
#pragma once
#include <windows.h>
=================================
StdAfx.cpp文件内容:
#include "StdAfx.h"
=================================
主文件内容:
#include "StdAfx.h"
#include <objidl.h>
#include <gdiplus.h>
#pragma comment(lib,"Gdiplus.lib")
==================================
为什么编译时却出了问题:
main.cpp(1): fatal error C1854: cannot overwrite information formed during creation of the precompiled header in object file: 'd:\my documents\visual studio 2010\projects\gdiplus\gdiplus\release\main.obj'
![[转圈哭]](/static/emoticons/u8f6cu5708u54ed.png)
2012年08月31日 15点08分
1
比如:
=================================
StdAfx.h头文件内容:
#pragma once
#include <windows.h>
=================================
StdAfx.cpp文件内容:
#include "StdAfx.h"
=================================
主文件内容:
#include "StdAfx.h"
#include <objidl.h>
#include <gdiplus.h>
#pragma comment(lib,"Gdiplus.lib")
==================================
为什么编译时却出了问题:
main.cpp(1): fatal error C1854: cannot overwrite information formed during creation of the precompiled header in object file: 'd:\my documents\visual studio 2010\projects\gdiplus\gdiplus\release\main.obj'