i can not solve this error lazarus / 8-Other ---------------------------------------------------------------------- cpalx · 2009-07-31 03:06 Hello, i convert a delphi project in lazarus project, but when i compile, i have the above error, any idea? i work in windows XP, Intro.pas(8,20) Hint: Unit "messages" not used in Intro Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomImageList Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterMenuItem Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterMenu Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterMainMenu Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterPopupMenu Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterDragImageList Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterWinControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterGraphicControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterScrollingWinControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterScrollBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomFrame Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomForm Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterHintWindow Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomScrollBar Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomGroupBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomComboBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomListBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomEdit Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomMemo Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterButtonControl Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomButton Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomCheckBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterToggleBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterRadioButton Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomStaticText Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomLabel Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomBitBtn Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomSpeedButton Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomPage Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomNotebook Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterShape Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomSplitter Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterPaintBox Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomImage Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterBevel Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomRadioGroup Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomCheckGroup Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomLabeledEdit Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomPanel Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCustomTrayIcon Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterCommonDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterFileDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterOpenDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterSaveDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterSelectDirectoryDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterColorDialog Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterColorButton Fractal.lpr(22,1) Error: Undefined symbol: WSRegisterFontDialog Fractal.lpr(22,1) Fatal: There were 50 errors compiling module, stopping ---------------------------------------------------------------------- Leledumbo · 2009-07-31 10:28 Add Interfaces to your uses clause (before Forms). I'll try tweaking the tool so that it would add it automatically since this problem is very common. ---------------------------------------------------------------------- cpalx · 2009-07-31 13:54 That solved the problem, thanks a lot ---------------------------------------------------------------------- Leledumbo · 2009-08-01 05:45 If next time you convert another one, do this to automatically insert Interfaces unit: Open components/codetools/stdcodetools.pas and go to line 3714. Insert this code: Code: [Select]if not AddUnitToMainUsesSection('Interfaces','',SourceChangeCache) then begin   debugln('ConvertUsedUnits Unable to add Interfaces to main uses section');   exit; end; before: Code: [Select]if AddLRSCode then   if not AddUnitToMainUsesSection('LResources','',SourceChangeCache) then   begin     debugln('ConvertUsedUnits Unable to add LResources to main uses section');     exit;   end; and it's done. ---------------------------------------------------------------------- cpalx · 2009-08-01 18:23 Thanks a lot for your tip. ---------------------------------------------------------------------- Vincent Snijders · 2009-08-02 11:15 Leledumbo, did you create a bug report with this patch? ---------------------------------------------------------------------- Leledumbo · 2009-08-03 08:02 QuoteLeledumbo, did you create a bug report with this patch?No, not yet. Maybe later, I'll have to diff it first (which I haven't done). ---------------------------------------------------------------------- Elphi · 2009-08-24 18:32 Maybe later? http://bugs.freepascal.org/view.php?id=14427 ---------------------------------------------------------------------- Leledumbo · 2009-08-25 05:40 That's not me. Well, if somebody already creates a patch for it, then I don't think I need to do the same. ---------------------------------------------------------------------- Paulo França Lacerda · 2016-06-27 06:21 Quote from: Leledumbo on July 31, 2009, 12:28:19 pmAdd Interfaces to your uses clause (before Forms).God bless you! You saved my day. ---------------------------------------------------------------------- JuhaManninen · 2016-06-27 08:42 Quote from: patulinu on June 27, 2016, 08:21:30 amQuote from: Leledumbo on July 31, 2009, 12:28:19 pmAdd Interfaces to your uses clause (before Forms).God bless you! You saved my day. FYI, this thread happened in year 2009 when the Delphi converter was still under construction. Now it can do all trivial stuff, including adding the Interfaces unit to uses clause. Thus, always use the automatic conversion first for your Delphi code and then continue manually. ---------------------------------------------------------------------- Paulo França Lacerda · 2016-06-27 08:45 Quote from: JuhaManninen on June 27, 2016, 10:42:00 amFYI, this thread happened in year 2009 when the Delphi converter was still under construction. Now it can do all trivial stuff, including adding the Interfaces unit to uses clause. Thus, always use the automatic conversion first for your Delphi code and then continue manually. Thank you for the update.