Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Something Is Wrong When Linking (dev-c++)
Feelay
post Aug 8 2008, 01:09 PM
Post #1


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



Hi!

I am trying to learn how to use OpenGL.
I am úsing a compiler named dev-c++.
I was following a very simple tutorial that would teach me how to make a simple window in OpenGL.
But I got a strange error.
So I tryed to find a tutorial that would teach me how to install GLUT, because the tutorial I was following, that teached me how to make a window, used GLUT. Anyways, I did whatthe tutorial told me to do, and that didn't work. So can anyone please tell me how I can install GLUT, and how to link everything etc, when working with OpenGL.
I hope you understand what I want tongue.gif and BTW.. here is what the linker executed:

QUOTE
c:\dev-c++\lib\untitled1.o(.text+0x17):untitled1.cpp: undefined reference to `__glutInitWithExit@12'
c:\dev-c++\lib\untitled1.o(.text+0x3b):untitled1.cpp: undefined reference to `__glutCreateWindowWithExit@8'
c:\dev-c++\lib\untitled1.o(.text+0x67):untitled1.cpp: undefined reference to `__glutCreateMenuWithExit@8'
c:\dev-c++\lib\untitled1.o(.text+0x9a):untitled1.cpp: undefined reference to `glClearColor@16'
c:\dev-c++\lib\untitled1.o(.text+0xa7):untitled1.cpp: undefined reference to `glClear@4'
c:\dev-c++\lib\untitled1.o(.text+0xaf):untitled1.cpp: undefined reference to `glLoadIdentity@0'
c:\dev-c++\lib\untitled1.o(.text+0xee):untitled1.cpp: undefined reference to `glFlush@0'
c:\dev-c++\lib\untitled1.o(.text+0x134):untitled1.cpp: undefined reference to `glutInitDisplayMode@4'
c:\dev-c++\lib\untitled1.o(.text+0x149):untitled1.cpp: undefined reference to `glutInitWindowSize@8'
c:\dev-c++\lib\untitled1.o(.text+0x158):untitled1.cpp: undefined reference to `glutInitWindowPosition@8'
c:\dev-c++\lib\untitled1.o(.text+0x178):untitled1.cpp: undefined reference to `glutDisplayFunc@4'
c:\dev-c++\lib\untitled1.o(.text+0x180):untitled1.cpp: undefined reference to `glutMainLoop@0'


Thanks //Feelay

This post has been edited by Feelay: Aug 8 2008, 06:54 PM
Go to the top of the page
 
+Quote Post
Athlon1600
post Aug 9 2008, 02:39 AM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 17
Joined: 7-August 08
Member No.: 31,895



try putting this code at the top of the code:

CODE
# include <GL/gl.h>
# include <GL/glut.h>



I don't know much about this, I just googled you error and got this: very long link - click here
Go to the top of the page
 
+Quote Post
Feelay
post Aug 9 2008, 11:22 AM
Post #3


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



thank you =) But my problem was that I couldn't install glut.

But I solved it. The solution was the following.
I tryed to follow this tutorial:
Installing Glut To Dev C++, A tutorial to install GLUT on Dev C++

I thought I had the version needed. But when I was on the step where I needed to go to an update button, I couldn't find it. But after some research, I recognized that I had an older version of Dev-C++. So I downloaded the newest beta release, and followed the tutorial again. Now it is working =)

This post has been edited by Feelay: Aug 9 2008, 02:08 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Help On Swishmax - Linking Buttons...(7)
  2. Dating Sims?(16)
  3. [c/c++][linux] Linking With A -l Is Static Or Dynamic?(0)
  4. What's Wrong?(3)
  5. Linking Two Tables(12)
  6. Mysql Problem(1)
  7. Whats Wrong In Altec Lansing Sound System ?(5)
  8. I Hear A Sound Inside My System Unit.(10)
  9. What's Wrong With My Php Webpage?(2)
  10. Linking Iframes(1)
  11. 2 Networks, Wrong One Takes Over(3)
  12. Something Wrong With This Script?(9)
  13. Death Penalty, Right Or Wrong?(29)
  14. Whats Wrong With This?(3)
  15. Tested Out This Guide To Change Ip(2)
  1. Connecting To Wrong Ftp Address(8)
  2. What Is Wrong With This?(0)
  3. Infedility... Right Or Wrong?(7)
  4. Linking To Iframes(4)
  5. Something's Wrong With Myfuturepicks.com(6)
  6. Linking An Object Tag(0)
  7. What's Wrong With Microsoft?(83)
  8. Is Button Mashing Wrong?(10)
  9. Cant Access My Cpanel(6)
  10. What's Wrong With This Form?(5)
  11. A Question In Game Theory (i Think...)(6)
  12. Digital Alteration: Creative Or Just...wrong?(6)
  13. Something Wrong With The Points System.(10)
  14. What's Wrong With Firefox?(5)
  15. Can A PHP Page Knows Who's Linking To Itself?(9)


 



- Lo-Fi Version Time is now: 2nd December 2008 - 02:21 PM