LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2006, 02:31 PM   #1
jorian1
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Question how to compile .so files from a .h


I have some libraries, for example libsrfftw.so and libsrfftw.so.2 and have also a srfftw.h file from which I think those two came from, now I change my kernel version and those seems not to work on it, how do I make to compile those libraries for my new kernel?
Does anyone know which gcc options do I require?
 
Old 03-01-2006, 02:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to install the correct version of the package that these static objects came from, libsrfft i assume. a .h file is a c header, you can't compile it, and even even you could, you cna't just throw it at gcc and somehow get what you want out the other end... you've not even told us what happens when they don't work...
 
Old 03-01-2006, 04:50 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Here is where I learned:
http://www-128.ibm.com/developerworks/library/l-shobj/
ta0kira
 
Old 03-02-2006, 02:17 PM   #4
jorian1
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thank you ta0kira!!! That info was very helpful, I'll try those steps and if something funny happens I'll post a new question.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to compile source files Hallowedpoint Linux - Newbie 6 11-19-2005 08:02 AM
What do I add to compile/make files? vinoloco Ubuntu 5 04-12-2005 11:21 PM
What do I add to compile/make files? vinoloco Linux - Newbie 1 04-08-2005 04:30 PM
how to compile .torrent files zameer_india Linux - Newbie 4 01-06-2005 12:22 AM
Compile C files! Hady Linux - General 3 11-08-2003 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration