www.digitalmars.com         C & C++   DMDScript  

D - creating *.so libs, under linux

reply Denis R <denis_r telkomsa.net> writes:
(oopsie, the first message i've sent wrongly as a reply to another message)

Hello, 

I was wondering when will it be possible (I beleive its not yet supported) to
create code for dynamically loaded
libraries under linux/unix. That is, position independent code, like with the
-fpic switch on gcc compiler.

Also, will the dynamic library loading/unloading be part of the standard D ? So
that you can use these libs same on windows and linux say.
Apr 09 2005
parent reply J C Calvarese <jcc7 cox.net> writes:
Denis R wrote:
 (oopsie, the first message i've sent wrongly as a reply to another message)
And the message you were replying to was a cross-post, so even that was double post for someone who follows the old D group and the new digitalmars.D group. ;) You've been posting to the "old" D newsgroup. In the future, you should post to one of the newer newsgroups, such as digitalmars.D. Thanks. Newsgroups Main D Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D * usenet: news://news.digitalmars.com/digitalmars.D Bugs Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs * usenet: news://news.digitalmars.com/digitalmars.D.bugs Learning Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.learn * usenet: news://news.digitalmars.com/digitalmars.D.learn Announcements Newsgroup for D-related Projects * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.announce * usenet: news://news.digitalmars.com/digitalmars.D.announce GNU Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?D.gnu * usenet: news://news.digitalmars.com/D.gnu D Template Library * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.dtl * usenet: news://news.digitalmars.com/digitalmars.D.dtl Old D Newsgroup (please don't post here) * web: http://www.digitalmars.com/drn-bin/wwwnews?D * usenet: news://news.digitalmars.com/D More details available at: http://www.prowiki.org/wiki4d/wiki.cgi?NewsDmD
 
 Hello, 
 
 I was wondering when will it be possible (I beleive its not yet supported) to
create code for dynamically loaded
 libraries under linux/unix. That is, position independent code, like with the
-fpic switch on gcc compiler.
 
 Also, will the dynamic library loading/unloading be part of the standard D ?
So that you can use these libs same on windows and linux say.
-- jcc7 http://jcc_7.tripod.com/d/
Apr 09 2005
parent reply Denis R <denis_r telkomsa.net> writes:
Err, im sorry, it seems to me that i am sending to digitalmars.d. Is that a
wrong one to send to ?

On Sat, 09 Apr 2005 11:38:14 -0500
J C Calvarese <jcc7 cox.net> wrote:

 Denis R wrote:
 (oopsie, the first message i've sent wrongly as a reply to another message)
And the message you were replying to was a cross-post, so even that was double post for someone who follows the old D group and the new digitalmars.D group. ;) You've been posting to the "old" D newsgroup. In the future, you should post to one of the newer newsgroups, such as digitalmars.D. Thanks. Newsgroups Main D Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D * usenet: news://news.digitalmars.com/digitalmars.D Bugs Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs * usenet: news://news.digitalmars.com/digitalmars.D.bugs Learning Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.learn * usenet: news://news.digitalmars.com/digitalmars.D.learn Announcements Newsgroup for D-related Projects * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.announce * usenet: news://news.digitalmars.com/digitalmars.D.announce GNU Newsgroup * web: http://www.digitalmars.com/drn-bin/wwwnews?D.gnu * usenet: news://news.digitalmars.com/D.gnu D Template Library * web: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.dtl * usenet: news://news.digitalmars.com/digitalmars.D.dtl Old D Newsgroup (please don't post here) * web: http://www.digitalmars.com/drn-bin/wwwnews?D * usenet: news://news.digitalmars.com/D More details available at: http://www.prowiki.org/wiki4d/wiki.cgi?NewsDmD
 
 Hello, 
 
 I was wondering when will it be possible (I beleive its not yet supported) to
create code for dynamically loaded
 libraries under linux/unix. That is, position independent code, like with the
-fpic switch on gcc compiler.
 
 Also, will the dynamic library loading/unloading be part of the standard D ?
So that you can use these libs same on windows and linux say.
-- jcc7 http://jcc_7.tripod.com/d/
Apr 09 2005
parent reply Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
Denis R schrieb am Sat, 9 Apr 2005 22:24:15 +0200:
 Err, im sorry, it seems to me that i am sending to digitalmars.d. Is that a
wrong one to send to ?
You are sending to "D", not to "digitalmars.D".
Apr 09 2005
parent Denis R <denis_r telkomsa.net> writes:
ok :)

On Sat, 9 Apr 2005 23:15:21 +0200
Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> wrote:

 
 Denis R schrieb am Sat, 9 Apr 2005 22:24:15 +0200:
 Err, im sorry, it seems to me that i am sending to digitalmars.d. Is that a
wrong one to send to ?
You are sending to "D", not to "digitalmars.D".
Apr 09 2005