LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-09-2005, 11:28 PM   #1
Umanga
Member
 
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???

Thanks
 
Old 01-10-2005, 05:13 PM   #2
Mara
Moderator
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration