Author Topic: Strange Behaviour  (Read 11198 times)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Strange Behaviour
« Reply #15 on: February 15, 2006, 04:32:14 pm »
It is a typo in your source file. You cast to GLfoat. The type defined in gl.h is GLfloat.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Cybrid

  • Multiple posting newcomer
  • *
  • Posts: 19
    • Coder Times
Re: Strange Behaviour
« Reply #16 on: February 15, 2006, 04:35:05 pm »
OMG!!!!!!!!!!!!!!!!  :shock: how can I be so blind  :oops: :oops: :oops: :oops:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Strange Behaviour
« Reply #17 on: February 15, 2006, 04:40:11 pm »
Don't worry. Someone who tells you that he never made a mistake like that is a bloody liar. 8)

This is a good example of how important accurate information ( = posting the complete compiler message) can be.

EDIT:
Of course the typo has been in the code you posted all the time, and nobody saw it. This once again proves that nobody reads posts with more than 10 lines :lol:
« Last Edit: February 15, 2006, 04:42:36 pm by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Cybrid

  • Multiple posting newcomer
  • *
  • Posts: 19
    • Coder Times
Re: Strange Behaviour
« Reply #18 on: February 15, 2006, 05:41:40 pm »
Quote
This once again proves that nobody reads posts with more than 10 lines Laughing

Nice one 8)

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Strange Behaviour
« Reply #19 on: February 15, 2006, 07:39:25 pm »
Glfoat? LOL!!!
Didn't you mean Glfloat ?

Offline GLfoat

  • Single posting newcomer
  • *
  • Posts: 5
Re: Strange Behaviour
« Reply #20 on: February 15, 2006, 10:35:46 pm »
nice thread - somehow inspiring
Les ordinateurs sont mes amis ...

sethjackson

  • Guest
Re: Strange Behaviour
« Reply #21 on: February 15, 2006, 11:13:20 pm »
 :lol:

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: Strange Behaviour
« Reply #22 on: February 16, 2006, 12:11:43 am »
OMG!!!!!!!!!!!!!!!!  :shock: how can I be so blind  :oops: :oops: :oops: :oops:
Don't feel bad. It happens to me once in awhile. I had a function that wouldn't compile for months because my declaration in the header had a & and the actual function code didn't. I compared them at least 25 times until someone else pointed it out to me @ gamedev.net  :lol:
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline Cybrid

  • Multiple posting newcomer
  • *
  • Posts: 19
    • Coder Times
Re: Strange Behaviour
« Reply #23 on: February 16, 2006, 12:20:49 am »
Yeap, I supouse these kind of things can happen sometimes

sethjackson

  • Guest
Re: Strange Behaviour
« Reply #24 on: February 16, 2006, 12:33:02 am »
Yup one time it took me four weeks to figure out why something wouldn't compile. I had forgot to put the semicolon at the end of my class definition.  :oops: Yes four weeks. I was a newcomer to the classes thing.  :P