LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2006, 03:29 AM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
static build of application


Hello,
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
-X-
Member
 
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
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

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


Reply


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


All times are GMT -5. The time now is 10:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration