Re: [Plib-users] including sg.h problems
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-04-06 12:48:35
|
Clay, Bruce wrote: > Brian: > It looks like the sg lib is built using debug code generation while > the rest is built with multi-threaded debug code generation. Double > check the build settings for your libraries and projects. If they are > all ok then you could try putting libcd.lib on the ignore library list > in VC6 link tab I'm not Windows person - so I don't understand the subtlety of this. However, I'm planning on doing a 1.8.3 release of PLIB today and if changes are needed to the Windows build mechanism, I'd like to get them in ASAP so they'll be included in this release. > -----Original Message----- > From: pli...@li... > [mailto:pli...@li...] On Behalf Of Brian Smith > Sent: Tuesday, April 06, 2004 12:29 AM > To: pli...@li... > Subject: [Plib-users] including sg.h problems > > > I'm using VC++ 6.0 on windows XP, I built all the libraries for plib > 1.8.2 > and am linking to them in my project, as well as all .h files are in the > > right place. My problem is when I include sg.h i get these link errors: > > Linking... > LIBCMT.lib(dosmap.obj) : error LNK2005: __dosmaperr already defined in > LIBCD.lib(dosmap.obj) > LIBCMT.lib(osfinfo.obj) : error LNK2005: __alloc_osfhnd already defined > in > LIBCD.lib(osfinfo.obj) > LIBCMT.lib(osfinfo.obj) : error LNK2005: __set_osfhnd already defined in > > LIBCD.lib(osfinfo.obj) > LIBCMT.lib(osfinfo.obj) : error LNK2005: __free_osfhnd already defined > in > LIBCD.lib(osfinfo.obj) > LIBCMT.lib(osfinfo.obj) : error LNK2005: __get_osfhandle already defined > in > LIBCD.lib(osfinfo.obj) > LIBCMT.lib(osfinfo.obj) : error LNK2005: __open_osfhandle already > defined in > LIBCD.lib(osfinfo.obj) > LIBCMT.lib(lseek.obj) : error LNK2005: __lseek already defined in > LIBCD.lib(lseek.obj) > LIBCMT.lib(write.obj) : error LNK2005: __write already defined in > LIBCD.lib(write.obj) > LIBCMT.lib(tolower.obj) : error LNK2005: __tolower already defined in > LIBCD.lib(tolower.obj) > LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in > LIBCD.lib(tolower.obj) > LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other > libs; use /NODEFAULTLIB:library > Debug/Baseball.exe : fatal error LNK1169: one or more multiply defined > symbols found > > > This happens when I #include <plib/sg.h> (#inclde<plib/ul.h> compiles > and > links with no problems), Files that don't rely on sg.h work, sg.h seems > to > be the source. Anyone can help thanks in advance > > _________________________________________________________________ > Free up your inbox with MSN Hotmail Extra Storage! Multiple plans > available. > http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362 > ave/direct/01/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > -- ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |