|
From: Al S. <al....@sc...> - 2002-02-19 12:18:38
|
Hi, I have followed the instructions here to build gcc-mt-2.95.3.dll and libmingthrd.a. I am now trying to build a library (xerces-c) and at the link stage I am getting the following errors : f:/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-6/libgcc.a(tinfo2.o)(.text+0x4d0) : multiple definition of `__rtti_ptr' f:/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../libmingwthrd.a(ds00067 .o)(.text+0x0): first defined here ... lots more like above... I am sure that all cpp files have been compiled with the -mthreads option. What else could be going wrong? Al Slater > -----Original Message----- > From: min...@li... > [mailto:min...@li...]On Behalf Of Thomas > Pfaff > Sent: 21 January 2002 08:23 > To: Min...@li...; > pth...@so... > Subject: [Mingw-users] mingw32 DLLs, threads and exceptions HOWTO > (Update) > > > > This is an update of my HOWTO that i have posted about an year ago > (see http://www.geocrawler.com/archives/3/6013/2000/12/100/4789494 ). > After some discussion with Danny i think that he is right with his > solution to not touch libgcc.a (see > http://www.geocrawler.com/archives/3/6013/2001/4/250/5485779 ) and > create a replacement libmingthrd.a instead. I have modified > his Makefile a > little to create a import library named libmingthrd.a > directly so you must > not edit the specs file. > > The advantages are: > > 1. libgcc.a remains unchanged. > 2. There is only one dll left, mingwm10.dll is not needed anymore. > > The instructions are simple: > > Create a directory with libgcc.a, the attached Makefile and mthr.c, > mthr_init.c and crtmt.c from the mingw runtime sources. To > avoid memory > leaks you should use runtime 1.2 or above. > > After running make the directory will build a new libmingthrd.a and > gcc-mt-2.95.3.dll (the replacement for mingwm10.dll). > libmingthrd.a should be copied to the mingw32\lib directory > (rename the > original libmingthrd.a first), the dll should be copied > somewhere in your > Path (the mingw32\bin directory for example). > > Regards, > > Thomas > |