VC編譯錯誤總結

2021-06-19 15:18:24 字數 727 閱讀 9903

2.vs2005,vs2008[缺少「;」(在識別符號「pvoid64」的前面)] 解決方法

**解決:

開啟winnt.h 檔案

在如下定義

typedef void *pvoid;

typedef void * pointer_64 pvoid64;

前新增#define pointer_64 __ptr64就行了

3.vs2008編譯mozilla\plugins工程時出現d:\program files\microsoft sdks\windows\v6.1\include\winnt.h(5847) :error c2146: 語法錯誤 : 缺少「;」(在識別符號「contextrecord」的前面)

解決:增加預處理器定義_x86_

4.vs2008編譯mozilla\plugins工程時出現:

plugin.cpp(660) :error c3861: 「subclasswindow」: 找不到識別符號

plugin.cpp(774) :error c3861: 「getstockbrush」: 找不到識別符號

解決:增加預處理器定義xp_win

VC 常見編譯錯誤

fatal error c1010 unexpected end of file while looking for precompiled header directive。尋找預編譯標頭檔案路徑時遇到了不該遇到的檔案尾。一般是沒有 include stdafx.h fatal error c10...

VC 編譯錯誤總結(不斷更新)

1.win32應用 general error c1010070 failed to load and parse the manifest.0v 原始檔沒有載入到工程中 2.win32應用 error c2440 無法從 const char 8 轉換為 lpcwstr 在非mfc下 使用cstr...

xcode編譯錯誤總結

no architectures to compile for only active arch yes 這種錯誤 修改building settings下 build active architecture only 為no即可。dyld symbol not found objc setprop...