In linux : C++
Is there any way is ther to create a ".O" file without main() function in ".C" file .
iam using
"cc -c file.c -o file.o " with sun compiler
" gcc -Wall -c file.c " with g++ compiler
may i know
1) what command we need to use for with EDG compiler and any other C++ compielrs in LINUX
2) In windows may i know for any compilers ..even g++,cc,intel,etc ...?
please ...
i have seen this question ?
Possible to compile any .c file in isolation (that is, without a main?)
but i didn't find the answer ...