From: Fabrício G. <ska...@gm...> - 2009-06-30 01:08:57
|
Why below code returns error? ----- #include <windows.h> #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <glib/gi18n.h> int main() { printf(_("hello")); } ----- $ gcc main.c `pkg-config --cflags --libs glib-2.0` -o hello.exe C:/Users/Tester/AppData/Local/Temp/ccG2gUCd.o:main.c:(.text+0x3a): undefined ref erence to `__printf__' collect2: ld returned 1 exit status If I change printf(_("hello")) to printf("hello"), the code is compiled well. |