我在已有的project里面又加了一个cpp文件,编译。。告之有如下错误
Linking...
nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Dll_Main.obj
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj)
nafxcw.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Dll_Main.obj; second definition ignored
nafxcw.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj); second definition ignored
Creating library Release/ir_function.lib and object Release/ir_function.exp
Release/ir_function.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.ir_function.dll - 3 error(s), 9 warning(s)高手可以指导一下么?
Linking...
nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Dll_Main.obj
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj)
nafxcw.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Dll_Main.obj; second definition ignored
nafxcw.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj); second definition ignored
Creating library Release/ir_function.lib and object Release/ir_function.exp
Release/ir_function.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.ir_function.dll - 3 error(s), 9 warning(s)高手可以指导一下么?
EXPORT char* SQL(char *ConDb,char *ConName,char *ConPass,char *SqlExe)
和一个 char* ShowSQLInfo( SQLHANDLE hnd, SQLSMALLINT htType)有几个include
#include <afxdb.h>
#include <stdio.h>
#include "ir_function.h"
#include <afxdb.h>这一条语句的关系但是我在ir_function.h里面并没有include任何头文件啊