From: Alex B. <bi...@ii...> - 2011-01-09 07:16:54
|
On 09/01/11 16:14, Trinh Dao wrote: > Hello all, > > I cannot use printf("hello world") in mingw 64, does anybody meet the > same bug and could you please give me solution :-) > > all printf , fprintf, and cout also does not work !!! What errors are you receiving? I just made a quick test program and it all worked fine. #include <stdio.h> // For prtinf and fprintf #include <iostream> // For cout using namespace std; int main() { printf("hello world\n"); fprintf(stdout, "hello world\n"); cout << "hello world" << endl; return 0; } Saved that in a file called test.cpp and compiled it using g++, then ran it. All works fine under MSYS and MinGW-w64 on a Windows 7 x64 machine. Regards Bidski |