Hi,

It seems like you built libjasper with "Multi-threaded Debug (/MTd)"
setting. Rather, you need to build it using the "Debug multithreaded DLL
(/MDd)" setting. (In Project Properties, C/C++, Code Generation, Runtime
library.)

Mourad


On Tue, Mar 2, 2010 at 10:51 PM, zhenlong li <[email protected]> wrote:

> Dear all,
>
> Below is the linking error message when I tried to build the jp2 plugin
> with OSG-2.8.0 within VC++ 2005.
>
> I guess there is just something wrong with the setting of VC, but not sure.
>
>
> Please help if you know anything about those errors. Thanks!
>
> Linking...
> LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(invarg.obj) : error LNK2005: __invalid_parameter already
> defined in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined
> in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(tidtable.obj) : error LNK2005: __encoded_null already defined
> in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined
> in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: __malloc_dbg already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: __free_dbg already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already
> defined in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
> MSVCRTD.lib(cinitexe.obj)
> LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
> MSVCRTD.lib(cinitexe.obj)
> LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
> MSVCRTD.lib(cinitexe.obj)
> LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
> MSVCRTD.lib(cinitexe.obj)
> LIBCMTD.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)"
> (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined
> in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already
> defined in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(vsprintf.obj) : error LNK2005: _vsprintf already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(dbgrptw.obj) : error LNK2005: __CrtDbgReportW already defined
> in MSVCRTD.lib(MSVCR80D.dll)
> LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined in
> MSVCRTD.lib(MSVCR80D.dll)
> LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other
> libs; use /NODEFAULTLIB:library
> LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other
> libs; use /NODEFAULTLIB:library
> LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
> referenced in function ___tmainCRTStartup
> C:\osg\OpenSceneGraph-2.8.0\bin\Debug\..\osgPlugins-2.8.0\osgdb_jp2d.dll :
> fatal error LNK1120: 1 unresolved externals
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to