> 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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal