   Help with NeHe's Lesson 10
  (I changed the name of the structure "triangle" to "triangle_s")I receive this error while compiling:invaild conversion from 'void*' to 'triange_s*'This is the line:sector1.triangle=   malloc( numTriangles  * sizeof( triangle_s));The error is referring to "...triangle = malloc(...)"The assigning of the sector1.triangle to the mallocWhat do I need to do to fix it?   
  I can't even get Lesson 10 to compile. Glut and Glaux is being a pain for me.Edit:Got it working. I am using a version that doesn't use Glaux and it's finally working.By the way, I've renamed ALL instances of TRIANGLE to TRIANGLE_S and it works[Edited by - Pirata Nervo on June 19, 2009 3:14:22 AM];  I didn't actually read the code for that lesson so I don't really know what sector1 refers to, but sector1.triangle suggests that you probably forgot to rename that triangle to triangle_s.   ;  triangle is an instance of the structure triangle_s inside of an instance called sector1 which is stems from sector_s.EDIT:And I'm using the Linux/SDL exampleEDIT:Nevermind, I found out the problem. Instead putting a void* cast on triangle, I should have put a (triangle_s*) cast on malloc.[Edited by - jo3_sum on June 19, 2009 9:24:54 AM]