Lazarus or Zeos Bug??? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- ocascante · 2008-12-03 16:25 Hi... something "funny" ( or not?? ) Open a Lazarus new project, include manually ZComponent in the Unit1 USES clause. Try to run this, you are gonna have : unit1.pas(9,3) Fatal: Can't find unit ZComponent used by Unit1 Then, drop the Zconnection Icon from Zeos Access Tab to Form1, then delete the icon ( the Zconnection icon ) and run again.... and the error disappear!!! Bug??? ---------------------------------------------------------------------- Phil · 2008-12-03 17:28 Quote from: "ocascante"Bug??? When you drop a component on a form, this adds the component's package to the project. You can see this in Project Inspector. Once Lazarus knows the package, it also knows the location of the package's compiled units since it created them when the package was installed. If you add the unit manually, you need to add the path to the unit in Compiler Options under Other Unit Files (-Fu). Thanks. -Phil ---------------------------------------------------------------------- ocascante · 2008-12-03 17:38 Ok... well, i was thinking that if you install a component in Lazarus, like a did with the zeos library, it will be accessible just declaring it in the USES clause. Thanks for your answer!! ---------------------------------------------------------------------- Phil · 2008-12-03 17:42 Quote from: "ocascante"Ok... well, i was thinking that if you install a component in Lazarus, like a did with the zeos library, it will be accessible just declaring it in the USES clause. Thanks for your answer!! Try just declaring the unit in uses and then also add the package in Project Inspector. I'm thinking that should work and you shouldn't have to drop a component on the form or add to the unit path. Thanks. -Phil