Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

D-10 for GCC: was fcloseall() depricated

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
mike acker
Posts: 131
Joined: 2017-06-28 21:23

D-10 for GCC: was fcloseall() depricated

#1 Post by mike acker »

Code: Select all

~/Documents/1 Workareas/Workarea36$ gcc big_file_writer.c -o big_file_writer
big_file_writer.c: In function ‘main’:
big_file_writer.c:34:3: warning: implicit declaration of function ‘fcloseall’; did you mean ‘fclose’? [-Wimplicit-function-declaration]
   fcloseall();
   ^~~~~~~~~
   fclose
why is fcloseall()) rejected?
Viva la Resistencia

User avatar
ruwolf
Posts: 634
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 40 times
Been thanked: 28 times

Re: D-10 for GCC: was fcloseall() depricated

#2 Post by ruwolf »

It is not rejected, you have not declared it.
It is GNU C Library extension.
You probably should turn-on these extensions.

User avatar
mike acker
Posts: 131
Joined: 2017-06-28 21:23

Re: D-10 for GCC: was fcloseall() depricated

#3 Post by mike acker »

interesting

Code: Select all

#define _GNU_SOURCE /* include in order to use fcloseall() */
it would seem this was changed in D-10; I had not needed that declaration earlier
Viva la Resistencia

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: D-10 for GCC: was fcloseall() depricated

#4 Post by stevepusser »

Changed in the update to gcc-8 in Debian 10 would be a better way to say it. The same would also apply to any distro that updates to gcc-8, too.
MX Linux packager and developer

Post Reply