Error while creating a new package lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- DRIGUS · 2011-04-05 10:05 Hello *.*.   We need some advice while creating our first Lazarus package. We try to reuse a very simple non visual Delphi component. It is used in order to extract some component properties at design time and will be removed after copying the properties to the clipboard.   What we have done so far: We created a new package and add the Delphi unit with the new component to it. In the package settings we added the following paths:   $(LazarusDir)\ideintf   $(LazarusDir)\lcl   $(LazarusDir)\lcl\widgetset and   $(LazarusDir)\lcl\include in order to find some missing units. When we try to compile the package we run into the following error:   C:\Programme\lazarus\lcl\calendar.pp(29,6) Error: Illegal unit name: Calendar We use a very up to date snapshot: Lazarus 0.9.31 r30164 FPC 2.4.3 i386-win32-win32/win64 Thanks ---------------------------------------------------------------------- DirkS · 2011-04-05 23:10 Not sure if it's the cause of your problem, but instead of adding the paths directly you should add packages as a requirement (open package, click 'Add' and then goto 'new requirement'). In this case you probably have to add LCL and IDEIntf as requirements. Gr. Dirk. ---------------------------------------------------------------------- DRIGUS · 2011-04-06 09:19 Thanks Dirk, this was the missing point. I found it later in the Wiki, too. Greetings