[root@*** tem]# ls
simp.c
[root@*** tem]# cat simp.c
void main()
{}
[root@*** tem]# gcc simp.c -o simp
simp.c: In function `main':
simp.c:2: warning: return type of `main' is not `int'
[root@*** tem]# ls
simp simp.c
[root@*** tem]#
come on, it is the stituation we want, right?
it's compiled in c, but not c++
try g++, or change the file name to *.C. i mean captial c. or cpp, then use g++ or gcc.
I am not gcc/g++ expert, maja041, my feeling is your compiler have a default setting of high warning level. Try to find compile option for ignore warnings, maybe "g++ -w" ?