g++ main.o |
g++ main.o something_else.o |
something_else.o: file not recognized: File format not recognized |
|
|
rm -f main.o Signature.o SparseRep.o Matching.o VisualMedia.o Frame.o Segment.o Video.o Image.o vid make: Circular Signature.o <- VisualMedia.o dependency dropped. make: Circular Signature.o <- Frame.o dependency dropped. make: Circular Signature.o <- Segment.o dependency dropped. make: Circular Signature.o <- Video.o dependency dropped. make: Circular Image.o <- VisualMedia.o dependency dropped. g++ -Wall -c Image.h -o Image.o g++ -Wall -c Signature.h -o Signature.o make: Circular SparseRep.o <- VisualMedia.o dependency dropped. make: Circular SparseRep.o <- Frame.o dependency dropped. make: Circular SparseRep.o <- Segment.o dependency dropped. make: Circular SparseRep.o <- Video.o dependency dropped. g++ -Wall -c SparseRep.h -o SparseRep.o g++ -Wall -c Matching.h -o Matching.o g++ -Wall -c VisualMedia.h -o VisualMedia.o g++ -Wall -c Frame.h -o Frame.o g++ -Wall -c Segment.h -o Segment.o g++ -Wall -c Video.h -o Video.o g++ -Wall -c main.cpp -o main.o g++ -Wall -o vid main.o Signature.o SparseRep.o Matching.o VisualMedia.o Frame.o Segment.o Video.o Image.o Signature.o: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [vid] Error 1 |
|
|
$(gpp) -c Segment.h -o Segment.o
why compile header files?
|
|
g++ -Wall -c main.cpp g++ -Wall -c VisualMedia.cpp g++ -Wall -c Video.cpp g++ -Wall -c Segment.cpp g++ -Wall -c Frame.cpp g++ -Wall -c Image.cpp g++ -Wall -c Signature.cpp g++ -Wall -c SparseRep.cpp g++ -Wall -c Matching.cpp g++ -Wall -o vid main.o VisualMedia.o Video.o Segment.o Frame.o Image.o Signature.o SparseRep.o Matching.o Image.o: In function `VisualMedia::whatami()': Image.cpp:(.text+0xf2): multiple definition of `VisualMedia::whatami()' VisualMedia.o:VisualMedia.cpp:(.text+0x6c): first defined here Image.o: In function `VisualMedia::compare(VisualMedia const&)': Image.cpp:(.text+0x11c): multiple definition of `VisualMedia::compare(VisualMedia const&)' VisualMedia.o:VisualMedia.cpp:(.text+0x96): first defined here Image.o: In function `VisualMedia::find(VisualMedia const&)': Image.cpp:(.text+0x14a): multiple definition of `VisualMedia::find(VisualMedia const&)' VisualMedia.o:VisualMedia.cpp:(.text+0xc4): first defined here Image.o: In function `VisualMedia::~VisualMedia()': Image.cpp:(.text+0x178): multiple definition of `VisualMedia::~VisualMedia()' VisualMedia.o:VisualMedia.cpp:(.text+0xf2): first defined here Image.o: In function `VisualMedia::~VisualMedia()': Image.cpp:(.text+0x278): multiple definition of `VisualMedia::~VisualMedia()' VisualMedia.o:VisualMedia.cpp:(.text+0x1f2): first defined here Image.o: In function `VisualMedia::~VisualMedia()': Image.cpp:(.text+0x378): multiple definition of `VisualMedia::~VisualMedia()' VisualMedia.o:VisualMedia.cpp:(.text+0x2f2): first defined here Image.o: In function `VisualMedia::VisualMedia()': Image.cpp:(.text+0x610): multiple definition of `VisualMedia::VisualMedia()' VisualMedia.o:VisualMedia.cpp:(.text+0x3f2): first defined here Image.o: In function `VisualMedia::VisualMedia()': Image.cpp:(.text+0x6ce): multiple definition of `VisualMedia::VisualMedia()' VisualMedia.o:VisualMedia.cpp:(.text+0x4b0): first defined here collect2: ld returned 1 exit status make: *** [vid] Error 1 |
|
|
|
|
|
|
|
|
|
|