[fpc-pascal] problem with the opengl unit

leledumbo leledumbo_cool at yahoo.co.id
Sat May 3 19:04:36 CEST 2014


> It does not work with my glut.pas code

Do you use {$mode objfpc} or {$mode delphi}? ParamStr should return
AnsiString instead of ShortString there, and it's convertible to PChar.
Otherwise, you can cast the result to AnsiString first.

P.S.: I don't recommend glut, not even freeglut, for learning OpenGL, use
glfw instead for cross platform OpenGL toolkit.

> It does not work when I am compiling hedgewars-src-0.9.20:

.nix filesystems are case sensitive. GL and gl is different. The compiler
should've tried searching both though, so it must be something else. Check
the generated Makefile, or better, the CMakeLists.txt.



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/problem-with-the-opengl-unit-tp5719120p5719121.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list