- Код: Выделить всё
library test_dll;
{$mode objfpc}{$H+}
uses
Classes, fuexport
{ you can add units after this };
begin
end.
и (тут только добавил зависимость от Dialogs):
- Код: Выделить всё
unit fuexport;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Dialogs;
implementation
end.
все компилируется без ошибок, но если добавить зависимость проекта с пакетом LCL, то получаю кучу ошибок:
Компиляция проекта, цель: test_dll.dll: Код завершения 1, ошибок: 49
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomImageList
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterMenuItem
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterMenu
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterMainMenu
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterPopupMenu
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterDragImageList
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterLazAccessibleObject
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterWinControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterGraphicControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterScrollingWinControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterScrollBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomFrame
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomForm
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterHintWindow
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomScrollBar
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomGroupBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomComboBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomListBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomEdit
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomMemo
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterButtonControl
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomButton
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomCheckBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterToggleBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterRadioButton
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomStaticText
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomLabel
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomBitBtn
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomSpeedButton
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterShape
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomSplitter
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterPaintBox
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomImage
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterBevel
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomRadioGroup
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomCheckGroup
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomLabeledEdit
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomPanel
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCustomTrayIcon
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterCommonDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterFileDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterOpenDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterSaveDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterSelectDirectoryDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterColorDialog
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterColorButton
test_dll.lpr(11,1) Error: Undefined symbol: WSRegisterFontDialog
что это?