GLScene units added in the wrong place in the uses section
Original Reporter info from Mantis: Vincent
-
Reporter name: Vincent Snijders
Original Reporter info from Mantis: Vincent
- Reporter name: Vincent Snijders
Description:
My Lazarus Directory is c:\lazarus\source\lazarus.
My FPC Source Directory is c:\lazarus\source\fpc\2.3
The GLScene package is in C:\lazarus\source\fpcprojects\glscene\trunk\Lazarus\glscenelazarus.lpk and the glscene unit is in C:\lazarus\source\fpcprojects\glscene\trunk\Source\glscene.pas.
In Options -> Codetools -> Code creation -> New units are added to uses section: behind related.
If I drop a TGlScene component on the form, the GLScene unit is added as first unit, even before the classes unit. I would prefer it to be put after the LCL units, because the GLScene package depends on the LCL package.
The uses section of the .lpr looks like:
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
glscenelazarus, Interfaces, // this includes the LCL widgetset
Forms, Unit1, LResources
{ you can add units after this };
The glscenelazarus unit (the main unit of the glscene package) is added before the interfaces unit. This causes errors if one the units used by GLScene uses the WidgetSet object indirectly. Since it glscene package depends on the LCL, it would be more logical to add the unit after the LCL units.
See related issue #13790, for the effects of this place of the glscenelazarus unit. It seems that since the restructuring of the widget set functions, the order of the used units has become more important.
Mantis conversion info:
- Mantis ID: 13899
- OS: Windows
- OS Build: XP Home SP2
- Platform: i386
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20376 (#807dd505)
- Monitored by: » Kjow (Kjow)
- Target version: 0.9.28