The problem is: As the declaration is implicit the compiler is not
showing wrong arguments.

  How would you remove this warning? Should I redeclare this function?

The details:

[EMAIL PROTECTED]:~/programming/c/problem$ cat problem.c
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>

int main (int argc, char ** argv) {

wprintf (L"Hello,\n");

return EXIT_SUCCESS;
}
[EMAIL PROTECTED]:~/programming/c/problem$ gcc -Wall problem.c -o problem
problem.c: In function 'main':
problem.c:7: warning: implicit declaration of function 'wprintf'
[EMAIL PROTECTED]:~/programming/c/problem$ ./problem
Hello,
[EMAIL PROTECTED]:~/programming/c/problem$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk-default
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)







To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to