Recent

Author Topic: Still strugling with 'include file not found'  (Read 16625 times)

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« on: April 17, 2006, 08:43:09 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
RE: Still strugling with
« Reply #1 on: April 18, 2006, 02:57:46 pm »
Is this on win32 ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Still strugling with 'include file not found'
« Reply #2 on: April 18, 2006, 07:05:22 pm »
Yes, XP; thanks for your reply.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #3 on: April 19, 2006, 10:41:05 am »
I've similar problems. We're investigating this atm.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Still strugling with 'include file not found'
« Reply #4 on: April 19, 2006, 09:12:15 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #5 on: April 20, 2006, 07:00:57 pm »
Just to make things sure, did you enter the path to your .inc fiile in project - compiler options - other sources ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« Reply #6 on: April 22, 2006, 08:03:16 pm »
I set the search path in project|compiler options|include files

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« Reply #7 on: July 20, 2006, 11:43:53 pm »
0.9.16 didn't fix this. Any news, please?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #8 on: July 21, 2006, 10:30:04 am »
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.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« Reply #9 on: July 21, 2006, 01:30:12 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #10 on: July 24, 2006, 04:29:35 pm »
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 ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« Reply #11 on: July 24, 2006, 09:16:04 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #12 on: July 26, 2006, 11:43:06 am »
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.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Elphi

  • Full Member
  • ***
  • Posts: 132
Still strugling with 'include file not found'
« Reply #13 on: July 26, 2006, 04:01:23 pm »
Ok, that's understood, many thanks.  BTW, it seems to me that the UI cf compiler option|paths needs a little polishing.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Still strugling with 'include file not found'
« Reply #14 on: July 27, 2006, 11:42:31 am »
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.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018