Solved

makefile for shared library

Posted on 1998-12-12
11
305 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
 

Author Comment

by:prain
ID: 1255076
Adjusted points to 5
0
 

Author Comment

by:prain
ID: 1255077
Adjusted points to 10
0
ScreenConnect 6.0 Free Trial

Explore all the enhancements 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: 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ho to creat split-view application in iPad that display PDF file?? 3 149
Detect CR LF to each line 12 153
Acrinis True image 2 61
What is atomic operation? 6 46
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 switch statements in the C programming language.

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now