From: ebling AT premiernet DOT net (Stuart Ebling) Newsgroups: comp.os.msdos.djgpp Subject: Linking DJGPP v2.0 compiled libraries with v2.01 built executables Date: Tue, 31 Dec 1996 20:49:07 GMT Organization: PremierNET, Inc. Lines: 36 Message-ID: <32c97c3e.9165938@nntp.premiernet.net> NNTP-Posting-Host: slip02.premiernet.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hello, I have recently downloaded and installed the gnat 305 (Ada compiler) distribution for MSDOS (that is built with DJGPP 2.0 and uses gcc and some other executables from the DJ 2.0 release.) Since I already had DJ 2.01 installed and running I wanted to use that setup along with the gnat components. I installed the distribution (being very careful not to let unzip replace any existing files). The only problem that I ran across came in the linking stage (an undefined reference to __dummy in the libgnat.a library). I discovered that '__dummy' is defined in the libgcc.a that was ditributed with the gnat release. Examining the two distributions of libgcc, shows that (by module name anyway) _dummy.o is the only difference. Therefore I extracted the _dummy.o file from the gnat distributed libgcc and added it to the DJ 2.01 supplied libgcc.a I can now successfully produce executables from Ada source (the supplied examples compile and execute correctly.) The question I have is, should I anticipate any problems mixing an object module compiled with DJ 2.0 with an executable built using the DJ 2.01 'suite'. Not necessarily with the gnat 305 distribution, but in general. Keep in mind that all the Ada object modules and the libgnat.a were also built with DJ v2.0. BTW, I don't have available (yet) the gnat 305 source code since the 307 version has just been released (DOS release in a few days but still built with v2.0) so the source available is 3.07, so I can't just recompile the libraries and objects with 2.01, though I do expect to be able to track down the 3.05 source shortly. Thanks in advance. -- Stuart Ebling ebling AT premiernet DOT net