I try to compile and link my application in 2 steps :
g++ -c -o file1.o file1.cc general_header.h
g++ -c -o file2.o file2.cc general_header.h
g++ -c -o file3.o file3.cc general_header.h
g++ -o myApp file1.o file2.o file3.o
I'm getting a link error as following:
file1.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Am i doing something wrong ?
How to send a EML file as email using python script to list of emails one at a time?
1:How to retrieve value from etc/sysconfig in Python
g++ -c -o file1.o file1.cc. How do they read clusters/cylinders/sectors from the disk?
2:Java OutOfMemoryError due to Linux RAM disk cache not freed
and you must then also say:.
g++ -c file1.cc
g++ -c file1.cc file2.cc file3.cc