Solved

makefile for shared library

Posted on 1998-12-12
11
304 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 and use pointers 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.

747 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

11 Experts available now in Live!

Get 1:1 Help Now