C++ program compilation fails in Ubuntu, but works in MacOSX
问题 Hi I've a program written in C++. When I compile it in Mac terminal with g++ compiler, it compiles and runs. But when I compile the same C++ program in Ubuntu terminal with g++ compiler, it Fails. I don't know why it happens. g++ compiler version in Ubuntu is 4.7.3. Here is my code sample #include <iostream> using namespace std; #define IXSIZE 400 #define IYSIZE 400 #define IZSIZE 3 void putbyte(FILE *outf, unsigned char val) { unsigned char buf[1]; buf[0] = val; fwrite(buf,1,1,outf); } void