Recent

Author Topic: [SOLVED] I can't import other Unit when using fpWeb in the project  (Read 360 times)

giancarloandroid

  • New member
  • *
  • Posts: 7
I can't import a Unit created by me in a Pascal project using Lazarus IDE and fpWeb framework that is used for open a HTTP connection.

The following error occurs when I compile the project with Unit x_inicializacao implemented in the Main file:

Quote
Projeto.lpr(18,1) Error: Error while linking

I'm using the TFPWebModule class and I need call a function of the Unit that I created in the procedure of the fpWeb:

Code: Pascal  [Select]
  1.     procedure DataModuleRequest(Sender: TObject; ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);

How can I proceed?

Thanks.

Main file (Main.pas):

Code: Pascal  [Select]
  1. // x_inicializacao import, with I delete this import the project is compiled without errors.
  2. uses SysUtils, Classes, httpdefs, fpHTTP, fpWeb, x_inicializacao;
  3.  
  4. procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;
  5.   AResponse: TResponse; var Handled: Boolean);
  6. var CaminhoArquivo: String;
  7.     Schema: String;
  8.     DataInicial: String;
  9.     DataFinal: String;
  10.     CodigoUnidade: Integer;
  11. begin
  12.  
  13.   Schema := ARequest.QueryFields.Values['Schema'];
  14.   DataInicial := ARequest.QueryFields.Values['DataInicial'];
  15.   DataFinal := ARequest.QueryFields.Values['DataFinal'];
  16.   CodigoUnidade := StrToInt(ARequest.QueryFields.Values['CodigoUnidade']);
  17.  
  18.   // With I delete the following line the project is compiled without errors:
  19.   CaminhoArquivo := gerar(Schema, DataInicial, DataFinal, CodigoUnidade);
  20.  
  21.   AResponse.ContentType := 'text/plan';
  22.   AResponse.Contents.LoadFromFile(CaminhoArquivo);
  23.  
  24.   Handled := True;
  25. end;
« Last Edit: December 10, 2018, 11:10:30 am by giancarloandroid »

lucamar

  • Sr. Member
  • ****
  • Posts: 496
Re: I can't import other Unit when using fpWeb in the project
« Reply #1 on: December 06, 2018, 07:05:29 pm »
Which error does the linker report? Also, can you attach the unit which is giving you problems (x_inicializacao)?


ETA: If case you don't know how to obtain all the mesages generated by a compilation: right-click in the "Messages" window and select: "Copy>Copy all/original ...". See the attached image for reference.
« Last Edit: December 06, 2018, 07:42:15 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/FPC 3.0.4 on:
(K)Ubuntu 11..16, Windows XP SP3 (Home/Prof.) and various DOS incarnations.

giancarloandroid

  • New member
  • *
  • Posts: 7
Re: I can't import other Unit when using fpWeb in the project
« Reply #2 on: December 07, 2018, 11:35:05 am »
Original message:

Quote
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2018/05/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling Projeto.lpr
(3104) Compiling main.pas
/home/mr4e/fonts/oniun-sped-fiscal-http/main.pas(14,33) Hint: (5024) Parameter "Sender" not used
(9022) Compiling resource /home/mr4e/fonts/oniun-sped-fiscal-http/lib/x86_64-linux/Projeto.or
/usr/bin/ld: aviso: /home/mr4e/fonts/oniun-sped-fiscal-http/lib/x86_64-linux/link.res contém seções de saída; você se esqueceu de -T?
(9015) Linking /home/mr4e/fonts/oniun-sped-fiscal-http/lib/x86_64-linux/Projeto
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsimglist.o: na função "REGISTERCUSTOMIMAGELIST":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsimglist.pp:262: referência não definida para "WSRegisterCustomImageList"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsmenus.o: na função "REGISTERMENUITEM":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsmenus.pp:221: referência não definida para "WSRegisterMenuItem"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsmenus.o: na função "REGISTERMENU":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsmenus.pp:232: referência não definida para "WSRegisterMenu"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsmenus.o: na função "REGISTERMAINMENU":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsmenus.pp:243: referência não definida para "WSRegisterMainMenu"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsmenus.o: na função "REGISTERPOPUPMENU":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsmenus.pp:254: referência não definida para "WSRegisterPopupMenu"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERDRAGIMAGELIST":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:442: referência não definida para "WSRegisterDragImageList"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERLAZACCESSIBLEOBJECT":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:452: referência não definida para "WSRegisterLazAccessibleObject"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:462: referência não definida para "WSRegisterControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERWINCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:472: referência não definida para "WSRegisterWinControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERGRAPHICCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:482: referência não definida para "WSRegisterGraphicControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wscontrols.o: na função "REGISTERCUSTOMCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wscontrols.pp:493: referência não definida para "WSRegisterCustomControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsforms.o: na função "REGISTERSCROLLINGWINCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsforms.pp:264: referência não definida para "WSRegisterScrollingWinControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsforms.o: na função "REGISTERSCROLLBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsforms.pp:275: referência não definida para "WSRegisterScrollBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsforms.o: na função "REGISTERCUSTOMFRAME":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsforms.pp:286: referência não definida para "WSRegisterCustomFrame"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsforms.o: na função "REGISTERCUSTOMFORM":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsforms.pp:297: referência não definida para "WSRegisterCustomForm"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsforms.o: na função "REGISTERHINTWINDOW":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsforms.pp:308: referência não definida para "WSRegisterHintWindow"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMSCROLLBAR":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:734: referência não definida para "WSRegisterCustomScrollBar"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMGROUPBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:745: referência não definida para "WSRegisterCustomGroupBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMCOMBOBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:756: referência não definida para "WSRegisterCustomComboBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMLISTBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:767: referência não definida para "WSRegisterCustomListBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMEDIT":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:778: referência não definida para "WSRegisterCustomEdit"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMMEMO":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:789: referência não definida para "WSRegisterCustomMemo"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERBUTTONCONTROL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:805: referência não definida para "WSRegisterButtonControl"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMBUTTON":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:819: referência não definida para "WSRegisterCustomButton"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMCHECKBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:830: referência não definida para "WSRegisterCustomCheckBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERTOGGLEBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:843: referência não definida para "WSRegisterToggleBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERRADIOBUTTON":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:854: referência não definida para "WSRegisterRadioButton"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMSTATICTEXT":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:867: referência não definida para "WSRegisterCustomStaticText"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsstdctrls.o: na função "REGISTERCUSTOMLABEL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsstdctrls.pp:878: referência não definida para "WSRegisterCustomLabel"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsbuttons.o: na função "REGISTERCUSTOMBITBTN":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsbuttons.pp:107: referência não definida para "WSRegisterCustomBitBtn"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsbuttons.o: na função "REGISTERCUSTOMSPEEDBUTTON":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsbuttons.pp:119: referência não definida para "WSRegisterCustomSpeedButton"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERSHAPE":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:232: referência não definida para "WSRegisterShape"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMSPLITTER":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:243: referência não definida para "WSRegisterCustomSplitter"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERPAINTBOX":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:254: referência não definida para "WSRegisterPaintBox"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMIMAGE":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:265: referência não definida para "WSRegisterCustomImage"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERBEVEL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:276: referência não definida para "WSRegisterBevel"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMRADIOGROUP":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:287: referência não definida para "WSRegisterCustomRadioGroup"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMCHECKGROUP":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:298: referência não definida para "WSRegisterCustomCheckGroup"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMLABELEDEDIT":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:309: referência não definida para "WSRegisterCustomLabeledEdit"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMPANEL":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:320: referência não definida para "WSRegisterCustomPanel"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsextctrls.o: na função "REGISTERCUSTOMTRAYICON":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsextctrls.pp:337: referência não definida para "WSRegisterCustomTrayIcon"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERCOMMONDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:141: referência não definida para "WSRegisterCommonDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERFILEDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:152: referência não definida para "WSRegisterFileDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTEROPENDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:163: referência não definida para "WSRegisterOpenDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERSAVEDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:174: referência não definida para "WSRegisterSaveDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERSELECTDIRECTORYDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:185: referência não definida para "WSRegisterSelectDirectoryDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERCOLORDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:196: referência não definida para "WSRegisterColorDialog"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERCOLORBUTTON":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:207: referência não definida para "WSRegisterColorButton"
/usr/bin/ld: //usr/share/lazarus/1.8.4/lcl/units/x86_64-linux/wsdialogs.o: na função "REGISTERFONTDIALOG":
/home/mattias/tmp/lazarus-project1.8.4/lazarus-project_build/usr/share/lazarus/1.8.4/lcl//widgetset/wsdialogs.pp:218: referência não definida para "WSRegisterFontDialog"
/home/mr4e/fonts/oniun-sped-fiscal-http/Projeto.lpr(18,1) Error: (9013) Error while linking
/home/mr4e/fonts/oniun-sped-fiscal-http/Projeto.lpr(18,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

x_inicializacao structure:

Code: Pascal  [Select]
  1. unit x_inicializacao;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes,
  9.   SysUtils,
  10.   ACBrSpedFiscal,
  11.   bloco_0,
  12.   bloco_b,
  13.   bloco_c,
  14.   bloco_d,
  15.   bloco_e,
  16.   bloco_g,
  17.   bloco_h,
  18.   bloco_k,
  19.   bloco_1,
  20.   bloco_9;
  21.  
  22. function gerarX(Schema: String;
  23.                          DataInicial: String;
  24.                          DataFinal: String;
  25.                          CodigoUnidade: Integer) : String;
  26.  
  27. implementation
  28.  
  29. function gerarX(Schema: String;
  30.                          DataInicial: String;
  31.                          DataFinal: String;
  32.                          CodigoUnidade: Integer) : String;
  33. begin
  34.  
  35. end;
  36.  
  37. end.
« Last Edit: December 07, 2018, 11:53:08 am by giancarloandroid »

giancarloandroid

  • New member
  • *
  • Posts: 7
Re: I can't import other Unit when using fpWeb in the project
« Reply #3 on: December 07, 2018, 08:01:10 pm »
I think it's because Zeos component, when I delete the zcomponent of the project uses, the project compile normally. But I don't know how to fix it yet.

EDIT

Instead of fpWeb, I also tried with Brook Framework, but still the same error. I think it's because initialization and some incompatibility.

« Last Edit: December 07, 2018, 09:01:09 pm by giancarloandroid »

CCRDude

  • Sr. Member
  • ****
  • Posts: 443
Re: I can't import other Unit when using fpWeb in the project
« Reply #4 on: December 07, 2018, 09:01:37 pm »
Just google for "WSRegisterFontDialog", "linking" and "lazarus", and you'll find that you need to add "Interfaces" to the project files uses clause :)

giancarloandroid

  • New member
  • *
  • Posts: 7
Re: I can't import other Unit when using fpWeb in the project
« Reply #5 on: December 10, 2018, 11:10:15 am »
Just google for "WSRegisterFontDialog", "linking" and "lazarus", and you'll find that you need to add "Interfaces" to the project files uses clause :)

Thank you, that worked!

I was thinking that "MSRegisterFontDialog" was just a warning  :-X