can not find LibC (moduleload) lazarus / 70-OpenGL ---------------------------------------------------------------------- jcaser1948 · 2017-12-28 08:12 I use Lazarus 1.8 in SuseLinux 42.3 64 bits  und try to compile the Demo Openglcontrol. wich comes with Lazarus. I get a complain from Moduleloader "Can not find LIBC" The code  part in the Moduloader is uses {$ifdef Linux}   Types,   Libc; {$else}  I can not fid this Libc anywhere. Cansamone give me a hint? Thanks ---------------------------------------------------------------------- Thaddy · 2017-12-28 08:20 I am not sure the libc unit is necessary(it is deprecated) but the libc llibrary it is in /packages/libc/ and the unit libc is in /packages/libc/src/libc.pp. It is 32 bit only and only i386. http://wiki.freepascal.org/libc_unit You should use the unix and linux units instead. (I think at least somethink like baseunix, baselinux , cthreads); ---------------------------------------------------------------------- jcaser1948 · 2017-12-28 10:15 Thanks Thaddy. No wonder  Lazarus does not find the library. Is there a way to compile  the Demo Openglcontrol. which comes with Lazarus (Linux64bit). If there is none I wonder why they ship this demo in the package at all.Perhaps to discourage newbies like me ---------------------------------------------------------------------- Thaddy · 2017-12-28 10:33 Well its author is on this forum. But are you sure you are using Laz 1.8 +FPC 3.0.4? If the demo indeed relies on libc, that is easy to fix. It can also be considered a bug if it still is in Laz 1.8. ---------------------------------------------------------------------- wp · 2017-12-28 11:46 I tested the OpenGL demo which comes along with the package in Linux Mint/gtk2, and it is running fine (32 bit, though). I wonder where this module loader is coming from. Seeking through the entire Lazarus/fpc source tree, there is only one moduleloader.pas, and this is in (fpc)\packages\winunits-jedi\src\ModuleLoader.pas. Strange... ---------------------------------------------------------------------- Thaddy · 2017-12-28 12:10 Because jedi units historically supports Kylix? Anyway, libc (the unit) should not turn up in demo code that is part of the distribution.. OpenGL is cross-platform. ---------------------------------------------------------------------- marcov · 2017-12-28 12:37 My guess is that your compiler finds some third party GL unit that isn't terribly well ported to Free Pascal instead of the default freepascal one. Go to the example form, and ctrl-click the gl unit, and see what it loads. ---------------------------------------------------------------------- jcaser1948 · 2017-12-28 13:18 Dear Markov I explain what I have done 1) downloaded  the compiled Lazarus1.8 from Opensuse with YAST 2) Installed it also with Yast 3) copied  the Demo programs out to my Home directory, changed the Ownership and compiled it When I try to compile Openglecontrol Lazarus refuses  The error rises in the Moduleloader unit moduleloader; {   $Id: moduleloader.pas,v 1.4 2004/02/20 17:19:10 savage Exp $   } {******************************************************************} {                                                                  } {       Project JEDI                                               } {       OS independent Dynamic Loading Helpers                     } {                                                                  } { The initial developer of the this code is                        } { Robert Marquardt