X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 5 Dec 2001 18:39:14 +0200 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Thomas Bonner Cc: djgpp AT delorie DOT com Subject: Re: g77 problem In-Reply-To: <001901c17da6$b0c44360$44348481@ethz.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 5 Dec 2001, Thomas Bonner wrote: > > ----- Original Message ----- > From: > To: > Cc: > Sent: 05 December, 2001 15:08 > Subject: Re: g77 problem > > > > On 22 Nov 2001 at 11:50, pavenis AT lanet DOT lv wrote: > > > > > On 22 Nov 2001 at 9:26, Thomas Bonner wrote: > > > > > > > Hi, > > > > I upgraded to version 3.02 and found the following problem with g77: > > > > > > > > g77 test.fpp > > > > c:/djgpp/lib/gcc-lib/djgpp/3.02/tradcpp0.exe: Invalid option `-remap' > > > > > > > > this happens only with fortran files to be preprocessed (.fpp > extension). > > > > > > > > Please try my latest build of development version of gcc-3.0.3 (note that > gcc- > > 3.0.3 is not released yet, so be carefull with prerelease). I tried to fix > this > > problem there: > > > > http://www.ltn/lv/~pavenis/gcctest.html > > > > Andris > > > > > > > > Just installed 3.0.3 (gcc and g77) and tried it out. g77 is now working, but > another problem occured with gcc, which I could reduce to the following > sample > code: > > int main() > { > # if DJGPP > printf ("DJGPP\n"); > # else > printf ("TEST\n"); > # endif > } > > The (predefined) symbol DJGPP isn't working in version 3.0.3. (gcc -dM > test.c > had this symbol in its output list). I saw that and fixed it (I hope). All this needed modifying specs used to run compilers and preprocessor and some place were left not changed as needed. Please get updated archives and test again One possible problem: DJGPP_MINOR is not defined when tradcpp0 is being used as "-remap -imacros %sdjgpp.ver" is omitted from specs when using tradcpp0 (it's so when preprocessing FORTRAN sources) Andris