lug-bg: g++, dlopen() i _init()
- Subject: lug-bg: g++, dlopen() i _init()
- From: mitko@xxxxxxx (Dimitar Peikov)
- Date: Wed, 3 Jul 2002 17:28:11 +0300
Zdravejte,
Opitvam se da otvorja s g++ chrez dlopen() module, samo che iskam da izpulnja konstruktora /my_init()/ pri zarezdane. Samo che sled izpulnenieto na cjalata programa ... neshtata zavurshvat s 'Abort'. Sashtia tozi code (e sas zameneni streaming operatori s fprintf(stderr, "") ) kompiliran s gcc raboti bez problemi!
Njakoj da se e boril s neshto podobno?
Izpolzvam SuSE 8.0,
ld GNU ld version 2.11.92.0.10 20011021 (SuSE)
gcc version 2.95.3 20010315 (SuSE)
comandite za kompilirane:
g++ -o main_module main_module.c -ldl
g++ -shared -o test_module.so test_module.c -Wl,-E -Wl,-init="my_init"
--
Dimitar Peikov
Programmer Analyst
Globalization Group
"We Build e-Business"
RILA Solutions
27 Building, Acad.G.Bonchev Str.
1113 Sofia, Bulgaria
phone: (+359 2) 9797320
phone: (+359 2) 9797300
fax: (+359 2) 9733355
http://www.rila.com
<HR>
<UL>
<LI>application/zip \\\\\\\\\ \\\\: module.zip
</UL>
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|