[Lazarus] Erro: undefined symbol (Solved)
Antonio Fortuny
a.fortuny at sitasoftware.lu
Tue May 29 14:57:56 CEST 2012
Le 29/05/2012 14:46, Sven Barth a écrit :
> 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
You are absolutely right. It was a very old unit from an old test
programp. I was focused on the UIB sources and I did forget this oldy
test program. When removed, everything falls in place.
Thanks a lot to you all. :-)
> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list