[FLASH-USERS] implicit function declaration error when compiling with new C compiler
Slavin, Jonathan
jslavin at cfa.harvard.edu
Tue Jan 3 13:48:36 EST 2023
Hi,
After upgrading to a new C compiler (Intel's latest), I get the following
error during compilation of Flash:
io_attribute.c:66:5: error: call to undeclared function
'Driver_abortFlashC'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
The code Driver_abortFlashC.c is compiled successfully before encountering
this error. Maybe it has to do with the way it's called in io_attribute.c:
Driver_abortFlashC("[io_attribute_create]: Unknown I/O");
I've never gotten this error before. I'm guessing that including a
prototype like:
int Driver_abortFlashC(char* message)
in io_attribute.c might work. (Pardon my ignorance of C programming.)
Is that the way to get around this?
Thanks,
Jon
--
Jonathan D. Slavin (he/him)
Astrophysicist - High Energy Astrophysics Division
Center for Astrophysics | Harvard & Smithsonian
Office: (617) 496-7981 | Cell: (781) 363-0035
60 Garden Street | MS 04 | Cambridge, MA 02138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230103/db1f2fed/attachment.htm>
More information about the flash-users
mailing list