Lazarus
Miscellaneous => Other => Topic started by: cpalx on July 31, 2009, 05:06:55 am
-
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
-
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.
-
That solved the problem, thanks a lot
-
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:
if not AddUnitToMainUsesSection('Interfaces','',SourceChangeCache) then
begin
debugln('ConvertUsedUnits Unable to add Interfaces to main uses section');
exit;
end;
before:
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.
-
Thanks a lot for your tip.
-
Leledumbo, did you create a bug report with this patch?
-
Leledumbo, 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).
-
Maybe later?
http://bugs.freepascal.org/view.php?id=14427
-
That's not me. Well, if somebody already creates a patch for it, then I don't think I need to do the same.
-
Add Interfaces to your uses clause (before Forms).
God bless you! You saved my day. :)
-
Add 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.
-
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.
Thank you for the update. :)