LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-09-2003, 12:41 PM   #1
calble
LQ Newbie
 
Registered: Aug 2003
Location: Louisville, KY or Evansville, IN
Distribution: Fedora Core 3
Posts: 29

Rep: Reputation: 15
include a library in program


I am trying to write an app using the graphapp library. I can't it it to compile though. I have tryed to kdevelop and gcc. How do I set kdevelope and/or gcc to include the library?

Thanks,
Noah
 
Old 10-09-2003, 12:59 PM   #2
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
I think I might help you getting started:

When I wrote svgalib apps, I had to compile them as follows:

$ gcc ./app.c -lvga -o ./app

This means the -l (letter L) option can be used to provide libraries that should be included.
So maybe you could try -lgraphapp ?
 
  


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
How to change the library used by a program. wangjinyi Fedora 1 11-23-2005 10:31 AM
ANSI C: Math library making #include unnecessary? olspookishmagus Programming 3 11-01-2005 09:50 AM
not able to include archived C library into my program gauravsahni Programming 4 11-15-2004 02:30 AM
How to include library directories? davee Programming 7 04-05-2004 05:41 AM
Include and library path problem sadeer Linux - Software 1 11-07-2002 02:35 AM


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