Hi Koos, Of course, you are right.
This is what I did: Change this line in the nmake.opt file OPTFLAGS= /Zi /nologo To explicitly link with MSVCRT.lib for multithreaded support e.g for debug OPTFLAGS= /Zi /nologo /MDd or release OPTFLAGS= /Zi /nologo /MD The default is /ML which would be single-threaded and link with LIBC.lib So now my MFC mitab app works! --- In [email protected], "Tim Smith" <[EMAIL PROTECTED]> wrote: > > Hi Koos, > > I have built the MiTAB library using the makefile.vc > I just don't know what the problem is - it works when building a Win32 > console app - but not with MFC. > > Same thing happens if I build the release version ... > > LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in > msvcrt.lib(MSVCR71.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in > msvcrt.lib(MSVCR71.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in > msvcrt.lib(MSVCR71.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in > msvcrt.lib(MSVCR71.dll) > > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in > msvcrt.lib(cinitexe.obj) > > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in > msvcrt.lib(cinitexe.obj) > > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in > msvcrt.lib(cinitexe.obj) > > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in > msvcrt.lib(cinitexe.obj) > > LIBC.lib(mbctype.obj) : error LNK2005: __getmbcp already defined in > msvcrt.lib(MSVCR71.dll) > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Koos Ouwehand > Sent: 30 November 2005 09:07 > To: [email protected] > Subject: RE: [mitab] Re: error with MFC > > > The first problem is of different 'code generation' settings. So > use for all parts the same settings like 'debug multithread DLL' or so. > > Koos Ouwehand > > _____ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Tim Smith > Sent: Tuesday, November 29, 2005 5:53 PM > To: [email protected] > Subject: RE: [mitab] Re: error with MFC > > > I'm getting these link errors > > LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in > msvcrtd.lib(MSVCR71D.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in > msvcrtd.lib(MSVCR71D.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined > in msvcrtd.lib(MSVCR71D.dll) > > LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined > in msvcrtd.lib(MSVCR71D.dll) > > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined > in msvcrtd.lib(cinitexe.obj) > > > > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Ned Harding > Sent: 29 November 2005 16:33 > To: [email protected] > Subject: RE: [mitab] Re: error with MFC > > > > The default with a MFC app is to link with the libraries > in a shared dll. You will either need to change the MiTab to use shared > dlls, or your MFC app to use static dlls and that should fix your > problem. > > Ned. > > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of scumhampton > Sent: Tuesday, November 29, 2005 7:44 AM > To: [email protected] > Subject: [mitab] Re: error with MFC > > Yes, this is the problem I'm getting. I can compile a > Win32 console > app fine. > > Has anyone been able to build an app using MFC? > > I'm using VC7. > > --- In [email protected], "vietvlth" <[EMAIL PROTECTED]> > wrote: > > > > Hi all, the lib seems to be wrong when used in MFC. > When linking, > the > > linker report it conflicts with LIBC.lib. Then i > > used /nodefaultlib:"LIBC.lib", the linker can not open > > cpl_string.obj > > although i have compiled all of the library by nmake. > May the libs > is > > corrupted or what wrong within the source code > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor > > > Yahoo! Groups Links > > > > > > > > _____________________________________________________________________ _ > This email has been scanned by the MessageLabs Email > Security System. > For more information please visit > http://www.messagelabs.com/email > > _____________________________________________________________________ _ > > > > > SPONSORED LINKS > Affiliate program software > <http://groups.yahoo.com/gads? t=ms&k=Affiliate+program+software&w1=Affil > iate+program+software&w2=Construction+software+program&w3=Medical+sof twa > re+program&w4=Accounting+software+program&w5=Estate+program+real+soft war > e&w6=Software+development+program&c=6&s=198&.sig=9KaWuy6FKnRHLoW5F2y0 4Q> > Construction software program > <http://groups.yahoo.com/gads? t=ms&k=Construction+software+program&w1=Af > filiate+program+software&w2=Construction+software+program&w3=Medical+ sof > tware+program&w4=Accounting+software+program&w5=Estate+program+real+s oft > ware&w6=Software+development+program&c=6&s=198&.sig=F3LkPjhe1MkJ4Fq3Q QZw > UA> Medical software program > <http://groups.yahoo.com/gads? t=ms&k=Medical+software+program&w1=Affilia > te+program+software&w2=Construction+software+program&w3=Medical+softw are > +program&w4=Accounting+software+program&w5=Estate+program+real+softwa re& > w6=Software+development+program&c=6&s=198&.sig=AwyI7nQBuf_OuJksGRgsXA > > > Accounting software program > <http://groups.yahoo.com/gads? t=ms&k=Accounting+software+program&w1=Affi > liate+program+software&w2=Construction+software+program&w3=Medical+so ftw > are+program&w4=Accounting+software+program&w5=Estate+program+real+sof twa > re&w6=Software+development+program&c=6&s=198&.sig=VzCxLFHTZiHmXsWEP_d jZQ > > Estate program real software > <http://groups.yahoo.com/gads? t=ms&k=Estate+program+real+software&w1=Aff > iliate+program+software&w2=Construction+software+program&w3=Medical+s oft > ware+program&w4=Accounting+software+program&w5=Estate+program+real+so ftw > are&w6=Software+development+program&c=6&s=198&.sig=lMTrEr4oqbyRycvw8- -w5 > g> Software development program > <http://groups.yahoo.com/gads? t=ms&k=Software+development+program&w1=Aff > iliate+program+software&w2=Construction+software+program&w3=Medical+s oft > ware+program&w4=Accounting+software+program&w5=Estate+program+real+so ftw > are&w6=Software+development+program&c=6&s=198&.sig=DOR5xh8pu5s- DHxW2MQDr > A> > > _____ > > YAHOO! GROUPS LINKS > > > > * Visit your group "mitab > <http://groups.yahoo.com/group/mitab> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! > Terms of Service <http://docs.yahoo.com/info/terms/> . > > > _____ > > > > > _____________________________________________________________________ _ > This email has been scanned by the MessageLabs Email Security > System. > For more information please visit > http://www.messagelabs.com/email > > _____________________________________________________________________ _ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/dkFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/mitab/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
