can't compile project, Error while linking lazarus / 1-Linux ---------------------------------------------------------------------- MrG · 2005-01-04 09:19 Hello, I installed lazarus on SuSE9.0 without any problems. fpc-1.9.6-050102.i586.rpm fpcsrc-1.9.6-050102.i386.rpm lazarus-0.9.4.1-fpc_1.9.6_050103.i386.rpm But I can't compile my first "Hello World" project. Messages: /usr/bin/ld: cannot find -IX11 project1.lpr(14,1) Error: Error while linking /home/.../testproject/project1.lpr(1,1) Closing script ppas.sh Latzarus Source editor: project1.lpr: ' .... begin   Application.Initialize;   Application.CreateForm(TForm1, Form1);   Application.Run; end. //this line is marked red ...' Where can I find the problem? Thanks for any hint. MrG ---------------------------------------------------------------------- matthijs · 2005-01-04 11:35 Do a search for X11, you'll probably find it in /usr/lib/ Have a look at /etc/fpc.cfg and see what the library path is. It should look something like: Code: [Select] # searchpath for libraries -Fl/usr/lib/gcc/i386-redhat-linux/3.4.2 -Fl/lib;/usr/lib -Fl/usr/lib/mysql #-Fl/pp/lib Good luck! ---------------------------------------------------------------------- MrG · 2005-01-04 22:14 Thanks for your answer, but it did not work. I found different places that seemed to be OK but all of my tests were whithout success. Can you give me a hint which files should be in the directory. Thanks in advance ---------------------------------------------------------------------- Marc · 2005-01-05 10:45 You need development packages for X11 (or at least the following symlink: Code: [Select] /usr/X11R6/lib/libX11.so -> libX11.so.6.2 See also FAQ: I receive an error during the linking that states /usr/bin/ld can't find -l