Current location: Hot Scripts Forums » Programming Languages » C/C++ » Making Linkers Work - I Hate Golfing


Making Linkers Work - I Hate Golfing

Reply
  #1 (permalink)  
Old 02-17-04, 11:10 AM
Matt Tober Matt Tober is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Making Linkers Work - I Hate Golfing

Number 1: I'm not really really good at programming and stuff. So go easy on me.

I use Dev C++ v4.9.8.7 -

I'm interestied in working with graphics, and have libraries/includes/etc. for OpenGL. Now I am sure I have all the right files to compile a simple graphics program, like the one I'm trying here which contains:

#include <GL/glut.h>

Now I have the glut.h include file, and I copied the GL directory from the OpenGL distribution to my C:\Dev-Cpp\include directory.

This allowed the compiler to find the various function definitions.

But, the linker throws a fit... with stuff like:

[Linker error] undefined reference to `glutInitDisplayMode'
[Linker error] undefined reference to `glutInitWindowSize'
[Linker error] undefined reference to `glutCreateWindow'

In fact... alot of messages like that.

So - near as I can gather, I never learned how to properly and professionally integrate distributions of SDK (Software developer Kits and the like) into my compiler.

Can someone take me from no talent-hack to enlightened compiling guru in simple and easy to follow directions?

- Matt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-19-04, 08:59 AM
clay@lazarusid.com clay@lazarusid.com is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Flint, Michigan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
First, you're going to need to build the OpenGL library. Then, in projects that use it, you'll need to link to that library. Under Project Options, go to the parameters tab and use the Add Library or Object button.
__________________
<a href="http://www.lazarusid.com/">www.lazarusid.com</a>

Custom script development
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 04:08 AM


All times are GMT -5. The time now is 07:30 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.