After having some problems, I could recompile and link my programs using Wine. When running, The call to GetStdHandle(STD_OUTPUT_HANDLE) fails. It return 0. In windows enviroment this functions returns a numeric handle I use later to print onto the console. What's happening ? Is this a bug ? Can I solve it changing code ? Thanks in advance. Ignasi Villagrasa.