Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

makefile for shared library

Posted on 1998-12-12
11
Medium Priority
?
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 80 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

715 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