The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
create data file from report file cvvsnm UNIX for Dummies Questions & Answers 3 02-01-2008 12:25 PM
Read words from file and create new file using K-shell. bsrajirs Shell Programming and Scripting 4 06-01-2007 01:15 PM
Create A File big123456 UNIX for Advanced & Expert Users 3 05-23-2007 03:44 PM
File Compare and Create New File with Diff guiguy UNIX for Advanced & Expert Users 7 02-28-2007 06:43 AM
Create a file? peter UNIX for Dummies Questions & Answers 2 02-16-2001 03:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-19-2005
sarwan sarwan is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 54
How to create .SO file (DLL)

HI,
i want to create shared object file (that is .SO file it is similar to DLL in windows)......
Sarwan
  #2 (permalink)  
Old 09-19-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
The simplest way is to provide the -shared flag when using gcc.

Look at man gcc for more details.

Look at these links as well.

Program Library HOWTO ,Shared objects for the object disoriented and Writing DLLs for Linux apps

vino.
  #3 (permalink)  
Old 09-20-2005
devesh devesh is offline
Registered User
  
 

Join Date: Mar 2005
Location: Mumbai, India
Posts: 12
you can use CC -G command.
CC -G <library name> <list of object(.o) files>
for more help you can check man pages for CC.
  #4 (permalink)  
Old 09-29-2005
ChenMing ChenMing is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 7
different compiler has different options.
for example,
gcc use -shared -fPIC.
hp aCC use -b.
aix xlC use -G
...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0