From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,fdb648c171722165 X-Google-Attributes: gid111c93,public From: Ketil Z Malde Subject: Re: Should I get a Linux Alpha? - C compiler Date: 1997/07/29 Message-ID: #1/1 X-Deja-AN: 260083368 Sender: ketil@vaygach References: <1997Jul28.100940@kuhub.cc.ukans.edu> Mail-Copies-To: never To: gbussed@kuhub.cc.ukans.edu Organization: University of Bergen, Norway Newsgroups: comp.os.linux.alpha 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