Still strugling with 'include file not found' lazarus / 11-Options ---------------------------------------------------------------------- Elphi · 2006-04-17 18:43 Hi, Installed 0.9.15. Project builds but when a try to create an onclick event handler for a button in the object inspector I get a message that a custom include file defined is not found. I've set the path to the include file in compiler options. Tia, Elphi ---------------------------------------------------------------------- Marc · 2006-04-18 12:57 Is this on win32 ? ---------------------------------------------------------------------- Anonymous · 2006-04-18 17:05 Yes, XP; thanks for your reply. ---------------------------------------------------------------------- Marc · 2006-04-19 08:41 I've similar problems. We're investigating this atm. ---------------------------------------------------------------------- Anonymous · 2006-04-19 19:12 AFAIK I have encountered this problem in several earlier beta releases also. Please let me know when there is a snapshot build with a fix. ---------------------------------------------------------------------- Marc · 2006-04-20 17:00 Just to make things sure, did you enter the path to your .inc fiile in project - compiler options - other sources ? ---------------------------------------------------------------------- Elphi · 2006-04-22 18:03 I set the search path in project|compiler options|include files ---------------------------------------------------------------------- Elphi · 2006-07-20 21:43 0.9.16 didn't fix this. Any news, please? ---------------------------------------------------------------------- Marc · 2006-07-21 08:30 Yes. After yet another long email conversation with Mattias, I now understand how things should be configured. The projectsettings such as search paths are applied to any file found in a directory where at least one project (member) file exists. You can configure this in project -> project inspector. Make sure you add your units there. ---------------------------------------------------------------------- Elphi · 2006-07-21 11:30 Quote from: "Marc"Yes. After yet another long email conversation with Mattias, I now understand how things should be configured. Wiki stuff? Could you please explain your advice further? Suppose one needs the JclStrings unit from the Jcl library. It can be found in ..\jcl\common and needs Jcl.inc which resides in ..\jcl. Of course one should make in entry in compiler options|paths|other unit files: ..\jcl\common for the source, but how to deal with Jcl.inc? ---------------------------------------------------------------------- Marc · 2006-07-24 14:29 add JclStrings to your project. (in the project explorer) But this is more a package thing. I guess the jcl doesn't come with a lazarus package ? ---------------------------------------------------------------------- Elphi · 2006-07-24 19:16 With project explorer you mean project inspector? So I add JclStrings to the project, but what about that nasty Jcl.inc thing? Or am I completely out of order here? ---------------------------------------------------------------------- Marc · 2006-07-26 09:43 Ehm.. yes, I meant projectr inspector The moment you have JclStrings added to your project, the search paths apply when browsing from that file. So when in JclStrings, the codetools will find Jcl.inc if its path is defined in the include path of your project. ---------------------------------------------------------------------- Elphi · 2006-07-26 14:01 Ok, that's understood, many thanks.  BTW, it seems to me that the UI cf compiler option|paths needs a little polishing. ---------------------------------------------------------------------- Marc · 2006-07-27 09:42 Normally you wouldn't need it. For things like the Jcl, there should be a package all handling this. As a user, you only specify "use this package" and all paths etc are taken care of.