Ok
I download SILLY and CEGUI source code and generate the silly_d.lib and CEGUISILLYImageCodec_Static.lib including the changes. Now I'm trying to execute Sample Demo 6.
I change all the Code Generation->Runtime Library to Multi-thread Debug (/MTd), and I add SILLY_STATIC and FREEGLUT_STATIC on Preprocessor.
Now I got this linking error
Code: Select all
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __wassert already defined in LIBCMTD.lib(wassert.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strrchr already defined in LIBCMTD.lib(strrchr.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _memchr already defined in LIBCMTD.lib(memchr.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _atol already defined in LIBCMTD.lib(atox.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _vprintf already defined in LIBCMTD.lib(vprintf.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _exit already defined in LIBCMTD.lib(crt0dat.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _ftell already defined in LIBCMTD.lib(ftell.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fseek already defined in LIBCMTD.lib(fseek.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
I generate all the CEGUI_***_Static_d.lib using Code Generation->Runtime Library to Multi-thread Debug (/MTd). What am I missing?
Do I need to generate all the other dependencies as Static Libraries?
Cheers
EDIT:
Ok I add on Linker->Input->Ignore Specific Library->LIBCMTD and it compiles and it work. But I got this warnings. So, I'll focus on eliminated this warnings
Code: Select all
1>freetype_D.lib(ftsystem.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftinit.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftdebug.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftbase.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftglyph.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftbitmap.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(bdf.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(cff.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(type1cid.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(pcf.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(pfr.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(sfnt.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(truetype.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(type1.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(type42.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(winfnt.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(raster.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(smooth.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(autofit.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftgzip.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(ftlzw.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(psaux.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(pshinter.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>freetype_D.lib(psnames.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\freetype_D.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_chartables.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_compile.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_exec.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_globals.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_newline.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_ord2utf8.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_tables.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_try_flipped.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_valid_utf8.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>pcre_d.lib(pcre_xclass.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\pcre_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>expat_d.lib(xmlparse.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\expat_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>expat_d.lib(xmlrole.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\expat_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info
1>expat_d.lib(xmltok.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '../../../../dependencies/lib\expat_d.lib' or at 'c:\Rangel\PRIVATE\ENGINE\PROGRAM\CEGUI-0.6.2\Samples\bin\vc90.pdb'; linking object as if no debug info