Visit Jeremy's Blog.
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 02-21-2006, 03:29 AM   #1
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
static build of application

On Fedora core 4, i want to create my application binary as static binary. how can i do that? is that be possible as i must be having dynamic libraries on my system?
Old 02-21-2006, 09:39 AM   #2
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
What kind of app? Ada, Basic, Pascal, Python, C, C++ ? Static lib end with .a For C++ ;

g++ -static app.cpp -o app

man <some compiler>
Old 02-21-2006, 10:01 PM   #3
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Original Poster
Rep: Reputation: 30
its c++ application and i have Makefile


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
g++ static build problem Joe-E Programming 7 10-21-2004 01:05 AM
Please introduce tools to build application that can get input from Microphone amarin Linux - Software 2 08-10-2004 03:40 PM
How can I use gcc to build a static library? vtluu Red Hat 1 04-12-2004 10:45 AM
I can't build static programs Red Guy Programming 3 01-19-2003 01:43 AM
Glibc 2.3.1 build causes segfaults with static bash mdh Linux From Scratch 2 11-12-2002 06:08 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:50 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