SoloCodigo
Programación General => C/C++ => Visual C++ => Mensaje iniciado por: Carbonero en Jueves 17 de Abril de 2008, 17:33
-
Soy novato en C++, y me encuentro con los siguientes errores:
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(strcat.obj) : error LNK2005: _strcpy already defined in MSVCRTD.lib(MSVCRTD.dll)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMT.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/ePINRedund.exe : fatal error LNK1120: 1 unresolved externals
se que es un problema de likeado pero no se como solucionarlo
desde ya agradezco cualquier ayuda
-
lo siento por responder tarde
si te das cuenta
LIBCMT.lib
MSVCRTD.lib
están compiladas para diferentes configuraciones en el caso LIBCMT.lib está compilada para release y MSVCRTD.lib para debug, lo cual indica que estas usando librerías de terceros con esas diferentes configuraciones, o tu generaste esas librerías .
puedes probar ignorando una de la librerías, pero seguramente tendrán dependencias diferentes y ocasionaran problemas al no encontrar otras funciones.
y en el español la palabra linkeado no existe, solo encadenamiento.
-
Ademas te falta el main o usaste WinMain y dejate el SUBSYSTEM en CONSOLE en lugar de WINDOWS.