g_remove

2011-02-17 Thread Craig Bakalian
Hi, I am using g_remove to remove some temporary files from the /tmp folder. It is working as expected. Yet, gcc is complaining that I am making an implicit declaration. What is up with this? Craig Bakalian ___ gtk-app-devel-list mailing list

Re: g_remove

2011-02-17 Thread James Morris
On 17 February 2011 12:27, Craig Bakalian craigbakal...@verizon.net wrote: Hi, I am using g_remove to remove some temporary files from the /tmp folder. It is working as expected.  Yet, gcc is complaining that I am making an implicit declaration.  What is up with this? You've not #include-ed

Re: g_remove

2011-02-17 Thread Craig Bakalian
Hi, I have gtk and glib as includes? Am I missing something? If there wasn't the right include, the build would fail, further, the function wouldn't remove the file. Craig Bakalian On Thu, 2011-02-17 at 12:29 +, James Morris wrote: On 17 February 2011 12:27, Craig Bakalian

Re: g_remove

2011-02-17 Thread David Nečas
On Thu, Feb 17, 2011 at 12:45:36PM -0500, Craig Bakalian wrote: I have gtk and glib as includes? Am I missing something? Yes, on Unix the g_-wrappers are often just macros resolving to the underlying system function. So you need to #include stdio.h to get the real declarations (dunno why

Re: g_remove

2011-02-17 Thread Craig Bakalian
Hi David and KC, The glib/gstdio.h did the trick. But it is odd behavior. #include stdio.h was already in my includes. Craig Bakalian On Fri, 2011-02-18 at 02:00 +0800, KC wrote: Try to add include glib/gstdio.h KC On Fri, Feb 18, 2011 at 1:45 AM, Craig Bakalian

Re: g_remove

2011-02-17 Thread Michael Cronenworth
Craig Bakalian wrote: Theglib/gstdio.h did the trick. But it is odd behavior. It is not odd. Read David's e-mail for a full explanation. If it is still not clear, you should read the gcc man pages for warning options. ___ gtk-app-devel-list

Re: g_remove

2011-02-17 Thread Costin Chirvasuta
On Thu, Feb 17, 2011 at 9:11 PM, Craig Bakalian craigbakal...@verizon.net wrote: Hi David and KC, The glib/gstdio.h did the trick.  But it is odd behavior. #include stdio.h was already in my includes. Then g_remove must be a macro for a function in glib/gstdio.h, not stdio.h.

Re: g_remove

2011-02-17 Thread David Nečas
On Thu, Feb 17, 2011 at 09:46:14PM +0200, Costin Chirvasuta wrote: On Thu, Feb 17, 2011 at 9:11 PM, Craig Bakalian craigbakal...@verizon.net wrote: Hi David and KC, The glib/gstdio.h did the trick.  But it is odd behavior. #include stdio.h was already in my includes. Then g_remove

Re: g_remove

2011-02-17 Thread Colomban Wendling
Le 17/02/2011 20:46, Costin Chirvasuta a écrit : On Thu, Feb 17, 2011 at 9:11 PM, Craig Bakalian craigbakal...@verizon.net wrote: Hi David and KC, The glib/gstdio.h did the trick. But it is odd behavior. #include stdio.h was already in my includes. Then g_remove must be a macro for a