LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-30-2006, 01:05 PM   #1
Registered: Apr 2003
Location: USA
Distribution: Ubuntu
Posts: 95

Rep: Reputation: 15
Question Static Link Compile Tutorial

Hello. I'm trying to statically link in a required library when I compile this code. However, I'm a complete beginner when it comes to compiling. I've been trying to read through an Autotools manual:

But it's still pretty confusing. Are there any other good online resources for beginners that don't just cover HelloWorld? Thanks.
Old 12-30-2006, 01:35 PM   #2
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Pass -static into gcc through CFLAGS. AutoTools or not, it doesn't make any difference.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't compile QT tutorial examples Dravis Programming 12 01-13-2008 07:54 PM
C++ tutorial (link) goosie Programming 5 03-12-2006 08:37 AM
problem when trying to static link with gcc glvgfz Programming 11 09-18-2005 07:58 PM
sendmail tutorial link shadowsurfer Linux - Newbie 1 04-14-2005 01:57 AM
how to static link a specific library? koodailar Programming 3 07-26-2004 03:35 PM

All times are GMT -5. The time now is 11:32 AM.

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