User forums > Using Code::Blocks

warning: implicit declaration of function

(1/1)

fopetesl:
Compiling C code in Win7 32 bit I get this warning:

--- Code: ---C:\Ha\HaS3.c|556|warning: implicit declaration of function '_fileno' [-Wimplicit-function-declaration]
--- End code ---

_fileno() is defined in stdio.h which I checked and is being included.


--- Code: --- sprintf( catime,"logs/%02d%02d%d.bas",tm_now->tm_mday,tm_now->tm_mon,tm_now->tm_year);

   flog = fopen( catime, "r");             /** if open has already been written    **/
   if( flog) { bline = 1; fclose( flog); flog = 0; } /** so close it               **/
   if( !bline) flog = fopen( catime, "w");
   if( flog)  flogn = _fileno( flog);
--- End code ---

I have not redefined it and oddly enough this warning does not appear on another computer running 64 bit Win7.

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Navigation

[0] Message Index

Go to full version