Recent

Author Topic: USES - Unit not Found problems  (Read 2455 times)

Joel

  • Newbie
  • Posts: 5
USES - Unit not Found problems
« on: February 22, 2011, 11:21:23 pm »
I'm experiencing two problems with USES in Lazarus.  I've looked through every forum post and wiki article I can find, but none of the solutions seem to help.

1) We have a problem doing Build File.  Even on a sample project included in lazarus, such as barchart, if I do Build File on frmmain.pas, it fails, with the error that LResources was not found.  Running the program works, but we cannot build this file.  Is something configured incorrectly such that the sample projects do not even work?

2) Despite including them in the Includes area, we cannot directly include units in other directories.  For example, I may have the following unit/directory structure:

Source\unit2.pas
Source\Auxiliary\unit1.pas

The compiler is set to include both Source and Auxiliary folders, but if I just list globals in the USES for unit2, it claims it cannot find it.  I have to define 'unit1 in 'Auxiliary\unit1.pas' in order for it to compile.  Is this a bug, or is there some way I can make this work without specifying specific paths?

 

TinyPortal © 2005-2018