Ho guardato e ho trovato che non aggiungevo le librerie alle compilazioni dei singoli oggetti, ora però mi da un'altro errore:
codice:
guess85:cartella guess$ make
g++ -00 -g3 -Wall -c -g -fmessage-length=0 Elaborato.cpp
Elaborato.cpp:9:16: error: cv.h: No such file or directory
Elaborato.cpp:10:21: error: highgui.h: No such file or directory
Slice.h:32: error: ISO C++ forbids declaration of ‘IplImage’ with no type
Slice.h:32: error: expected ‘;’ before ‘*’ token
Slice.h:33: error: ISO C++ forbids declaration of ‘IplImage’ with no type
Slice.h:33: error: expected ‘;’ before ‘*’ token
Slice.h:40: error: ISO C++ forbids declaration of ‘vector’ with no type
Slice.h:40: error: expected ‘;’ before ‘<’ token
Slice.h:42: error: ISO C++ forbids declaration of ‘vector’ with no type
Slice.h:42: error: expected ‘;’ before ‘<’ token
Slice.h:44: error: ISO C++ forbids declaration of ‘vector’ with no type
Slice.h:44: error: expected ‘;’ before ‘<’ token
Slice.h:46: error: expected ‘;’ before ‘(’ token
Slice.h:47: error: ‘IplImage’ has not been declared
Slice.h:50: error: ‘vector’ has not been declared
Slice.h:50: error: expected ‘,’ or ‘...’ before ‘<’ token
Slice.h:52: error: ‘IplImage’ has not been declared
Slice.h:52: error: ‘vector’ has not been declared
Slice.h:52: error: expected ‘,’ or ‘...’ before ‘<’ token
Slice.h:53: error: ISO C++ forbids declaration of ‘IplImage’ with no type
Slice.h:53: error: expected ‘;’ before ‘*’ token
Slice.h:57: error: expected `)' before ‘*’ token
Image.h:30: error: ISO C++ forbids declaration of ‘IplImage’ with no type
Image.h:30: error: expected ‘;’ before ‘*’ token
Image.h:34: error: ISO C++ forbids declaration of ‘vector’ with no type
Image.h:34: error: expected ‘;’ before ‘<’ token
Image.h:36: error: ISO C++ forbids declaration of ‘IplImage’ with no type
Image.h:36: error: expected ‘;’ before ‘*’ token
Image.h:37: error: expected ‘;’ before ‘(’ token
Image.h:39: error: ‘vector’ has not been declared
Image.h:39: error: expected ‘,’ or ‘...’ before ‘<’ token
Reader.h:24: error: ISO C++ forbids declaration of ‘vector’ with no type
Reader.h:24: error: expected ‘;’ before ‘<’ token
Reader.h:25: error: ISO C++ forbids declaration of ‘vector’ with no type
Reader.h:25: error: expected ‘;’ before ‘<’ token
Reader.h:33: error: ISO C++ forbids declaration of ‘vector’ with no type
Reader.h:33: error: expected ‘;’ before ‘<’ token
make: *** [Elaborato.o] Error 1