Friday, May 3, 2013

visual studio 2012 c++ develop build error log problem

1.error log:

1>d:\work\svn\jm\esign\src\third\sample\dsoframer\src\XMLHttpClient.h(42): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int


old is:
operator==(const __XML_HTTP_ARGUMENT &argV){
return !_tcscmp(szName, argV.szName) && !_tcscmp(szValue, argV.szValue);
new is:
bool operator==(const __XML_HTTP_ARGUMENT &argV){
return !_tcscmp(szName, argV.szName) && !_tcscmp(szValue, argV.szValue);

2.error log
1>d:\work\svn\jm\esign\src\third\sample\dsoframer\src\dsoframer.h(180): error C2143: 语法错误 : 缺少“;”(在“*”的前面)

the error code is:

IHTMLDocument2 *  m_spDoc;


#include <mshtml.h>

3.error log

1>E:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlcomcli.h(456): error C2065: “GUID_NULL”: 未声明的标识符

becaused old old code is:


#define INITGUID // Init the GUIDS for the control...
#include "dsoframer.h"


#include <afxcmn.h>
#include <mshtml.h>

fixed:remove #define INITGUID in mainentry.cpp

//#define INITGUID // Init the GUIDS for the control...
#include "dsoframer.h"

4.error log:
1>HttpPostDat.lib(XMLHttpClient.obj) : error LNK2026: 模块对于 SAFESEH 映像是不安全的。

because project need HttpPostDat.lib,and HttpPostDat.lib has no safeseh option. so we need close it.


in project property –> link –> All option –> Image has a security exception handler : yes(/SAFESEH) change to no(SAFESEH:NO)



5. error log:

1>LINK : fatal error LNK1104: 无法打开文件“libc.lib”


in project property –> link –> input ignore special library: /NODEFAULTLIB:LIBC.LIB;LIBCP.LIB

6.error log:

1>dsofauto.obj : error LNK2001: 无法解析的外部符号 _LIBID_DSOFramer

1 comment:

Gino said...

I read a lot of interesting posts here. Probably you spend a lot of time writing, i know how to save you a lot
of work, there is an online tool that creates high quality, SEO friendly posts in minutes, just
search in google - laranitas free content source