[Y-devel] developing new widgets
Robert Wimmer seppwimmer at hotmail.com
Thu Mar 4 22:44:49 GMT 2004
hi andrew,
do you know a method for developing extensions for the widget library
without recompiling thr whole source tree ?
in the beginning i want to do it outside the source tree and i tried to do
this with dynamic libraries - for example (makefile)
*** makefile
INCL = -I/home/sepp/y-devel/Y-0.2 \
-I/usr/local/include/sigc++ \
-I/usr/local/lib/sigc++/include/
LIB = -L/usr/local/lib -lY -lYc++ -lfreetype -ldl -L. -lmyY -lmyYc++
source = test0
c_tool = edit0
cc_tool = edit
out = test
libmyY :
# compiling edit0.c to libmyY.so
gcc -fPIC -c $(c_tool).c $(INCL)
gcc -shared $(c_tool).o -o libmyY.so
# compiling edit.cc to libmyYc++.so
gcc -fPIC -c $(cc_tool).cc $(INCL)
gcc -shared $(cc_tool).o -o libmyYc++.so
# compiling and linking test
gcc -c -Wall $(source).cc $(INCL)
gcc -Wall $(source).o $(LIB) -o $(out)
*** errors
gcc -Wall test0.o -L/usr/local/lib -lY -lYc++ -lfreetype -ldl -L. -lmyY
-lmyYc++ -o test
./libmyYc++.so: undefined reference to `typeinfo for Y::Object'
./libmyYc++.so: undefined reference to `virtual thunk [v:0,-24] to
Y::Object::~Object [in-charge]()'
./libmyYc++.so: undefined reference to `virtual thunk [v:0,-24] to
Y::Object::~Object [in-charge deleting]()'
collect2: ld returned 1 exit status
make: *** [libmyY] Fehler 1
***
any idea ?
_________________________________________________________________
Behalten Sie Ihre Hotmails, den Messenger und die Suchfunktionen stets im
Auge! https://toolbar.msn.at
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved