[Lazarus] Erro: undefined symbol

Sven Barth pascaldragon at googlemail.com
Tue May 29 14:46:15 CEST 2012


Am 29.05.2012 14:04, schrieb Antonio Fortuny:
> I have restarted a new project doing this:
> 1. create a new application
> drop a close button and add into the event onclick: Close;
> Compile & run ok
> 2. add uiblaz package to project
> compile & run: OK 8-)
> 3. drop TUibDatabse, TUibTransaction, TUibQuery
> compile & run: OK
> 4. implement whatever the test program needs (query execute for read and
> update data including firebird arrays for which I changed the unit uiblib)
> compile & run: OK
> So far so good.
> 5. add the unit uibdataset to the interfacse uses clause and guess what:
> Hint: Start of reading config file
> D:\Programmes\lazarus\fpc\2.6.1\bin\i386-win32\fpc.cfg
> Hint: End of reading config file
> D:\Programmes\lazarus\fpc\2.6.1\bin\i386-win32\fpc.cfg
> Free Pascal Compiler version 2.6.1 [2012/04/26] for i386
> Copyright (c) 1993-2012 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling TestUIB.lpr
> Compiling TestUIBMain.pas
> ...
> TestUIBMain.pas(50,30) Hint: Parameter "Sender" not used
> TestUIBMain.pas(18,3) Hint: Unit "uibdataset" not used in TestUIBMain
> sounds of as far as I do not use anything from it
> Compiling resource D:\Compiled\Lazarus\DCU\TestUIB.or
> Linking D:\Compiled\Lazarus\TestUIB.exe
> TestUIB.lpr(20,1) Error: Multiple defined symbol PASCALMAIN
> TestUIB.lpr(20,1) Error: Multiple defined symbol _main
> TestUIB.lpr(20,1) Error: Multiple defined symbol INITFINAL
> TestUIB.lpr(20,1) Error: Multiple defined symbol FPC_THREADVARTABLES
> TestUIB.lpr(20,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
> TestUIB.lpr(20,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
> TestUIB.lpr(20,1) Error: Multiple defined symbol __heapsize
> TestUIB.lpr(20,1) Error: Multiple defined symbol __fpc_valgrind
> TestUIB.lpr(20,1) Error: Undefined symbol: THREADVARLIST_UIBDATASET
> TestUIB.lpr(20,1) Error: Undefined symbol: DEBUGINFO_UIBDATASETMAIN
> TestUIB.lpr(20,1) Error: Undefined symbol: DEBUGSTART_UIBDATASETMAIN
> TestUIB.lpr(20,1) Error: Undefined symbol: DEBUGEND_UIBDATASETMAIN
> TestUIB.lpr(20,1) Error: Undefined symbol: THREADVARLIST_UIBDATASETMAIN
> TestUIB.lpr(20,1) Error: Undefined symbol: U_UIBDATASETMAIN_FORM1
> TestUIB.lpr(20,1) Error: Undefined symbol: VMT_UIBDATASETMAIN_TFORM1
> TestUIB.lpr(20,1) Fatal: There were 15 errors compiling module, stopping

 From this output it seems that you have a compiled main program file 
named uibdataset.o lying around where the compiler can find it. Please 
remove all *.ppu and *.o files in the project directory, the unit output 
directory of the project and the unit output directory of the uiblaz 
package.

Regards,
Sven




More information about the Lazarus mailing list