Solved

makefile for shared library

Posted on 1998-12-12
11
308 Views
Last Modified: 2010-04-15
Hello:

I am trying yo create a shared library using a bunch of
C files. I am working on Sun Solaris platform. I have been trying to create a makefile file to do this but failed. Can anyone (expert) out there show me an example of how to create a makefile to create a shared library in Sun Solaris?

Ok. Please assume you have two C files namely my1.c and my2.c and that the name of the library I want to create is named myshared.so

Thanks
0
Comment
Question by:prain
  • 7
  • 4
11 Comments
 

Author Comment

by:prain
ID: 1255073
Quick reply is greatly appreciated.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1255074
Oferring a suitable amount of points is greatly appreciated.
0
 

Author Comment

by:prain
ID: 1255075
Edited text of question
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

Author Comment

by:prain
ID: 1255076
Adjusted points to 5
0
 

Author Comment

by:prain
ID: 1255077
Adjusted points to 10
0
 

Author Comment

by:prain
ID: 1255078
Adjusted points to 20
0
 

Author Comment

by:prain
ID: 1255079
Adjusted points to 40
0
 

Author Comment

by:prain
ID: 1255080
Adjusted points to 45
0
 
LVL 11

Accepted Solution

by:
alexo earned 40 total points
ID: 1255081
Try http://www.whitefang.com/unix/faq_7.html#SEC79
If that doesn't work, try compiling with the -G flag.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1255082
Another option is documented in:
  http://www.dejanews.com/getdoc.xp?AN=421076643

0
 
LVL 11

Expert Comment

by:alexo
ID: 1255083
Hmmm...  Any special reason for the low grade?
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question