From: Ketil Z Malde <ketil@ii.uib.no>
To: gbussed@kuhub.cc.ukans.edu
Subject: Re: Should I get a Linux Alpha? - C compiler
Date: 1997/07/29 [thread overview]
Message-ID: <KETIL-ytqk9iajmhd.fsf@imr.no> (raw)
In-Reply-To: 1997Jul28.100940@kuhub.cc.ukans.edu
gbussed@kuhub.cc.ukans.edu writes:
> He has made several different programs for
> artificial intelligence, and has had no problems compiling them under the c
> compiler for aix, Digital Unix, and even VMS. However, when he tried to compile
> it under Linux/Intel, it completely flopped, it gave a "parse" error.
[...]
> I would most appreciate it if someone could tell me what I would need to do to
> compile this software correctly.
Cute answer. fix the code.
Seriously:
- check the version of GCC you're using to see if it is fairly
recent
- read the fine manual! Perhaps all you need is an
--traditional or perhaps there is another switch you're
messing up. Are you ANSI, for instance?
- check the actual place the error is reported, ``parse error''
is rather vague.
> PS I also forgot to mention that sometimes Linux would compile the software
> with many warnings not experienced in the other Unix platforms, and that it
> would proceed to execute the code with different (wrong) results.
IMHO, gcc -Wall should produce no warnings if the code is well written.
(Okay, so there are exceptions, but in general) Have you checked that
the warnings aren't actually detecting a problem with the code?
~kzm
--
If I haven't seen further, it is by standing in the footprints of giants
prev parent reply other threads:[~1997-07-29 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-28 4:00 Should I get a Linux Alpha? - C compiler gbussed
1997-07-29 4:00 ` Ketil Z Malde [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox