Bonjour à tous,
voilà mon problème, j'ai installé wxWidgets (2.8) sous linux (Ubuntu 7.10) avec la commande "sudo apt-get install libwxbase2.8-dev".
Cepandant, je n'arrive pas à compiler mes sources (je sais que le code fonctionne) et voici mon erreur :

+ Compilation 'Image.o' : g++-4.1 `wx-config --cflags` `pkg-config opencv --cflags` -I. -I/usr/include -c Image.cpp -o Image.o
Temps.h:60: erreur: expected constructor, destructor, or type conversion before «*" token
Image.h:16: erreur: ISO C++ forbids declaration of «wxImage" with no type
Image.h:16: erreur: expected «;" before «*" token
Image.h:17: erreur: ISO C++ forbids declaration of «wxImage" with no type
Image.h:17: erreur: expected «;" before «*" token
Image.cpp:17: erreur: expected constructor, destructor, or type conversion before «*" token
Image.cpp:22: erreur: expected constructor, destructor, or type conversion before «*" token
make: *** [Image.o] Erreur 1

d'après ce que j'en comprends, il semblerait que le compilateur (gcc) ne connaisse pas le type wxImage (pareil avec d'autres type wx) mais j'ignore pourquoi. Peut etre me manque-t-il des libs...

Si vous avez une idée ou une solutiion à ce problème, cela m'aiderait beaucoup.
Merci d'avance

P.S. : Je vous met le makefile que j'utilise :
CXX = g++-4.1
CFLAGS = `wx-config --cflags`

WORKDIR = /usr


INCDIR = -I. -I$(WORKDIR)/include
LIBDIR = -L$(WORKDIR)/lib
LIBS = `wx-config --libs --gl-libs`

SOURCES = $(wildcard *.cpp)
OBJECTS = $(SOURCES:%.cpp=%.o)

TARGET = main

all : $(TARGET)

$(TARGET) : $(OBJECTS)
@echo -n "+ Edition des liens sur '`basename $@`' : "
@$(CXX) $(CFLAGS) $(INCDIR) $^ -o $@
@echo "OK"

%.o : %.cpp
@echo -n "+ Compilation '`basename $@`' : "
@$(CXX) $(CFLAGS) $(INCDIR) -c $< -o $@
@echo "OK"