Bugs item #775969, was opened at 2003-07-22 16:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=775969&group_id=8032
Category: Compiler (FFI) Group: 6.0 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: warning: implicit declaration of function foo Initial Comment: Hi, when I compile a simple program with a function imported from C using -fffi -O, I get the following: warning: implicit declaration of function 'foo' the imported function simply returns its argument multiplied by two. if I compile it without -O option, everything is fine, but with the -O option it gives the warning and when I run the program it gives the wrong result ( 1.0 for any number) Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=775969&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs