warning: implicit declaration of function foo
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Compiler (FFI) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |