From: Andrew Newsgroups: comp.os.msdos.djgpp Subject: Re: Linking libs problem Date: Mon, 30 Jun 2003 22:22:26 +1000 Organization: ECLiPSE Lines: 69 Message-ID: <72a0gv0mhgfsoqh3s6piblbl1hs17j8urd@4ax.com> References: <20030629 DOT 180846 DOT 11894 DOT 0 DOT vmccar0194 AT juno DOT com> NNTP-Posting-Host: p261-apx1.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1056975749 10049 203.173.141.7 (30 Jun 2003 12:22:29 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Mon, 30 Jun 2003 12:22:29 +0000 (UTC) X-Newsreader: Forte Agent 1.93/32.576 English (American) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > In an attempt to update from DJGPP Ver 2.03, GCC Ver 3.04 I ran onto >the > following problem, with both DJGPP Ver 2.03, GCC Ver 3.2.3 and the > experimental DJ204A, GCC Ver 3.30 on linking libraries. > > I am presently using a short name(8+3) setup. I tried using a lfn setup > and got the same results. > > This compilation is done by a batch file in a ram drive with the >following > copied files in ram: > libstdcx.a > libgcc.a > libc.a > I tried moving the lib files around in the batch file and got different > results but always the same error from libgcc.a, libc.a and libstdcx.a. > In the DJGPP Ver 2.03 with GCC Ver 3.2.3. GCC compiled ok but I get the > following errors during linking: From past experience if I remember correctly this looks like a problem with an incompatible C++ object/lib. > > When using DJGPP Ver 2.04 alpha and GCC 3.30 I get the error message: > libstdcx.a: > (c++locale.o)(.text._ZSt14__convert_to_vIfEvpkcRT_RSt12_Ios_Iostate > RKPii+0x65): undefined ref to `finite' You did not read the GCC readme.djgpp file... Please go back to GCC 3.2.2 from the Alpha directory. This is probably the cause of the problem.... > I went back to the previous version DJGPP Ver 2.03, GCC Ver 3.04 and >it > compiled all right, with no error messages and the program it produced >ran > ok, using the same method. > I read all the info included with the files and the faqV230 and have >not > found a solution. Did you read the readme.djgpp in the ...\gnu\gcc3.3 directory approx line 143 (search for 2.04). > Does anyone know if there anything wrong with the library libstdcx.a >in > DJGPP ver 2.04 and libstdcx.a, libc.a and libgcc.a in DJGPP Ver 2.03, > GCC Ver 3.30 or a special setup for the libraries? Yes, they are incopatible with each other and you need to use the right C++ compiler. The next alpha release will fix the problem as noted in the GCC 3.3 readme file. If the info above does not help then try the following:- I would suggest that you check that all of the libs and exes of DJGPP that you areusing are dated arround the 25-April-2003 (give or take 2-3 days). If you find any that are not dated then please do a dir on them and include them in your response. Please note:- Do not mix the 2.03 and 2.04 object/lib files as they are not compatible when dealing with C++ programs. If all else failes:- 1) If the batch file is small please supply it 2) Do you have a small sample program (less than 20 lines) that I can test with the 2.04 alpha release and with the latest build from last weekend to see if the problem can be reproduced. Andrew