Bonjour,

J'ai un probleme a linker mon application qui contient deux fichiers sources : un pour l'application et l'autre pour le Frame.

Mon application roule correctement sou windows avec devc++ toutefois sous linux j'ai des erreurs de linkage (enfin je pense)

voila mon make file
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
CXX = $(shell wx-config --cxx)
 
PROGRAM1 = prog1
PROGRAM2 = prog1Frame
# wx-config --libs
WX_LIBS = $(shell wx-config --libs)
 
# wx-config --cxxflags
 
WX_CXXFLAGS = $(shell wx-config --cxxflags)
OBJECTS = $(PROGRAM1).o
# implementation
.SUFFIXES:      .o .cpp
 
.cpp.o :
 
	$(CXX) $(WX_CXXFLAGS) -c  -o $@ $<
 
all:	$(PROGRAM1) $(PROGRAM2)
$(PROGRAM2) :$(PROGRAM2).o
$(PROGRAM1) :$(OBJECTS)
 
	$(CXX) $(WX_LIBS) -o $(PROGRAM1) $(PROGRAM2).o $(OBJECTS)
un type d'erreur affiché

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
undefined reference to `wxSizerItem::wxSizerItem(wxWindow*, int, int, int, wxObject*)'
Merci pour votre attention