Help answer threads with 0 replies.
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 01-10-2005, 12:28 AM   #1
Registered: Aug 2004
Location: Sri Lanka
Distribution: Debian Etch
Posts: 36

Rep: Reputation: 15
KDevelop, how to link a library??

Hello guys!
I started to code a SDL openGL application in KDevelop, but when I compile it it gives me linker errors!
When I compile it in the console :
"g++ -lSDL -lGLU -lGL prog.cpp Engine.cpp Camera.cpp Light.cpp -o test "
It works perfect!!
I think in KDevelop the linking of SDL and OpenGL libraries are missing?
So how to link those libraries in KDevelop???

Old 01-10-2005, 06:13 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Run Project options, then choose Configuration options and fill 'Linker flags'. In your case you should insert -lSDL -lGLU -lGL


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 link a library to gcc? Andrea_81 Programming 6 05-05-2005 05:22 AM
Urgent! How to create a library (.so) file under KDevelop? jiapei100 Programming 1 03-16-2005 04:35 PM
Kdevelop library problem maldini1010 Programming 3 02-16-2005 03:56 PM
link non-default libraries in KDevelop?? TLV Programming 3 12-14-2004 12:25 PM to link Glut ??? JSmith Programming 1 09-13-2004 11:46 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration