I am trying to compile C ++ - a program that I have not done for a long time ...
I'm trying to:
g++ -c A.cpp -o A.o
g++ -c dir/B.h -o B.o
which seem to work, and then I try:
g++ A.o B.o -o A -lX11 -lpthread
and get:
Bo: file not recognized: file format not recognized
collect2: ld returned 1 exit status
What is the problem?
Many thanks:)
rrr
source
share