Latest LQ Deal: Linux Power User Bundle
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 10-09-2003, 12:41 PM   #1
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?

Old 10-09-2003, 12:59 PM   #2
Registered: Sep 2003
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 ?


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 > Forums > Non-*NIX Forums > Programming

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