Mail Archives: djgpp/1999/11/12/09:05:21
Ali Ahmad Siddiqui wrote:
>
> I am having problems trying to compile code in djgpp that I have written
> on my MSVC compiler. It compiles fine on MSVC, but produces errors in
> djgpp even though I think I am writing ansi code. For instance if I have
> a prototype function in MSVC: "int funTimes(int, int, int)" MSVC takes it
> fine, but djgpp thinks this is a bad thing to do and produces errors.
> All help in this matter would be very much appreciated
"int funTimes(int, int, int)" is not legal C. You need to go "int
funTimes(int, int, int);" (notice the semicolon) for the code to
compile. You also need to define the function somewhere before the
compiled object files will link.
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -