I've wrote very simple program:
//++++++++ test.cpp ++++++
int main() {
int a, b;
a = 5;
b = a + 3;
}
//++++++++++++++
Without including any header files. Next, I've used official windows sdk compiler (for arm linux machine) on win XP:
D:\GPH_SDK\tools\gcc-4.0.2-glibc-2.3.6\arm-linux\bin\arm-linux-g++.exe -Wall -O3 -fexceptions -fomit-frame-pointer -fPIC -c test.cpp -o test.o
The compiler doesn't print any errors but doesn't create test.o file too.
What is incorrect ? I don't use any external library and header files in this example, so I don't have to put -L and -I dirs.
//++++++++ test.cpp ++++++
int main() {
int a, b;
a = 5;
b = a + 3;
}
//++++++++++++++
Without including any header files. Next, I've used official windows sdk compiler (for arm linux machine) on win XP:
D:\GPH_SDK\tools\gcc-4.0.2-glibc-2.3.6\arm-linux\bin\arm-linux-g++.exe -Wall -O3 -fexceptions -fomit-frame-pointer -fPIC -c test.cpp -o test.o
The compiler doesn't print any errors but doesn't create test.o file too.
What is incorrect ? I don't use any external library and header files in this example, so I don't have to put -L and -I dirs.