RE: [Plib-users] including sg.h problems
Brought to you by:
sjbaker
From: Brian S. <sch...@ho...> - 2004-04-06 20:21:18
|
Well i rechecked my build settings and rebuilt all the libraries, still the same problem, ignoring libcd.lib worked. Thanks, just hope I don't have to use it! -Brian >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 > >Bruce > > >-----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 _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |