Giuly
25-11-2005, 06:19
Hallo, mein Programm will sich nicht linken lassen, und ich habe keine Ahnung wieso.
g++ ` pkg-config gtk+-2.0 --cflags` -o strutil.o -c strutil.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o accounts.o -c accounts.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o config.o -c config.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o main.o -c main.cpp
g++ strutil.o accounts.o config.o main.o -o GeePodPP ` pkg-config gtk+-2.0 --libs` `curl-config --libs` -lsqlite3
accounts.o: In function `Account::~Account()':
accounts.cpp:(.gnu.linkonce.t._ZN7AccountD2Ev+0x12 ): undefined reference to `vtable for Account'
accounts.o: In function `Account::Account()':
accounts.cpp:(.gnu.linkonce.t._ZN7AccountC2Ev+0x12 ): undefined reference to `vtable for Account'
accounts.o:(.gnu.linkonce.r._ZTI12IpodsFreepay+0x1 0): undefined reference to `typeinfo for Account'
collect2: ld returned 1 exit status
make: *** [GeePodPP] Error 1
vtable? Was ist das?
Source (http://savannah.nongnu.org/cgi-bin/viewcvs/geefree/geefree/)
MFG
g++ ` pkg-config gtk+-2.0 --cflags` -o strutil.o -c strutil.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o accounts.o -c accounts.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o config.o -c config.cpp
g++ ` pkg-config gtk+-2.0 --cflags` -o main.o -c main.cpp
g++ strutil.o accounts.o config.o main.o -o GeePodPP ` pkg-config gtk+-2.0 --libs` `curl-config --libs` -lsqlite3
accounts.o: In function `Account::~Account()':
accounts.cpp:(.gnu.linkonce.t._ZN7AccountD2Ev+0x12 ): undefined reference to `vtable for Account'
accounts.o: In function `Account::Account()':
accounts.cpp:(.gnu.linkonce.t._ZN7AccountC2Ev+0x12 ): undefined reference to `vtable for Account'
accounts.o:(.gnu.linkonce.r._ZTI12IpodsFreepay+0x1 0): undefined reference to `typeinfo for Account'
collect2: ld returned 1 exit status
make: *** [GeePodPP] Error 1
vtable? Was ist das?
Source (http://savannah.nongnu.org/cgi-bin/viewcvs/geefree/geefree/)
MFG