* * *

Author Topic: Undefined symbol  (Read 1486 times)

Altagur

  • New member
  • *
  • Posts: 10
Undefined symbol
« on: January 12, 2018, 08:41:50 pm »
Hello,


I would like to build an applicaton on windows 32bit / laz 1.8 fpc 3.02, with xml, html dom parsing/usage,  i follow the steps of the basic tutorials of lazarus http://wiki.lazarus.freepascal.org/XML_Tutorial#Create_a_TXMLDocument_from_a_string, but i'm getting a stack of symbol error, im trying rebuild lazarus, clean/build, 64bit 32bit, too simple to reproduce the build error, but nobody ask about this.

 Somebody can help me?


dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNODELIST
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNODE_WITHCHILDREN
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNODE_TOPLEVEL
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMIMPLEMENTATION
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNODE_NS
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMNAMEDNODEMAP
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMELEMENT
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TNODEPOOL
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMDOCUMENT
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMATTR
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMCHARACTERDATA
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMTEXT
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMCOMMENT
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMCDATASECTION
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMDOCUMENTTYPE
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMENTITYREFERENCE
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMPROCESSINGINSTRUCTION
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TDOMDOCUMENTFRAGMENT
dom.lpr(25,1) Error: Undefined symbol: VMT_$DOM_$$_TXMLDOCUMENT
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_GETDOCUMENTELEMENT$$TDOMELEMENT
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNAMEDNODEMAP_$__$$_GETLENGTH$$LONGWORD
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNAMEDNODEMAP_$__$$_GETITEM$LONGWORD$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_DESTROY
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_FREEINSTANCE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_GETNODENAME$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETNODEVALUE$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETPARENTNODE$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_WITHCHILDREN_$__$$_GETFIRSTCHILD$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_WITHCHILDREN_$__$$_GETLASTCHILD$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETPREVIOUSSIBLING$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETATTRIBUTES$$TDOMNAMEDNODEMAP
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_GETNODETYPE$$LONGINT
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_GETTEXTCONTENT$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETLOCALNAME$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETNAMESPACEURI$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_GETPREFIX$$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_GETOWNERDOCUMENT$$TDOMDOCUMENT
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_INSERTBEFORE$TDOMNODE$TDOMNODE$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_REPLACECHILD$TDOMNODE$TDOMNODE$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_WITHCHILDREN_$__$$_DETACHCHILD$TDOMNODE$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_WITHCHILDREN_$__$$_HASCHILDNODES$$BOOLEAN
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMDOCUMENT_$__$$_CLONENODE$BOOLEAN$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_HASATTRIBUTES$$BOOLEAN
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_NORMALIZE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_CLONENODE$BOOLEAN$TDOMDOCUMENT$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_WITHCHILDREN_$__$$_FINDNODE$WIDESTRING$$TDOMNODE
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TDOMNODE_$__$$_COMPARENAME$WIDESTRING$$LONGINT
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TXMLDOCUMENT_$__$$_SETXMLVERSION$WIDESTRING
dom.lpr(25,1) Error: Undefined symbol: DOM$_$TXMLDOCUMENT_$__$$_SETXMLSTANDALONE$BOOLEAN

taazz

  • Hero Member
  • *****
  • Posts: 5151
Re: Undefined symbol
« Reply #1 on: January 12, 2018, 08:54:10 pm »
clean up and build everything that error usually means that a .ppu, .o etc file is been compiled with a different version of units than the one linking.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Altagur

  • New member
  • *
  • Posts: 10
Re: Undefined symbol
« Reply #2 on: January 14, 2018, 01:07:31 pm »
Thank you, but I can't find where is the problem, I deleted everything from proj\lb\i386-win32
and at lazarus  I  Run     "run / clean - build -> right corner, delete" and then build.

How to find where is the path where something built with a bad version of files?

Altagur

  • New member
  • *
  • Posts: 10
Re: Undefined symbol
« Reply #3 on: January 14, 2018, 05:15:29 pm »
I also tried this from another topic:
https://forum.lazarus.freepascal.org/index.php?topic=21279.0
"Search all .ppu and .o inside lazarus folder (with the exception everything under fpc folder) and remove them. Try recompiling again."

But nothing
 :(

When compile running i see that the compiler create detailed log but when it finished i cant find it, only just the warnings and hints and errors,  can i log it somehow?

Altagur

  • New member
  • *
  • Posts: 10
[SOLVED] Undefined symbol
« Reply #4 on: January 16, 2018, 05:01:20 pm »
 :o :-[ >:D

Finally, I found the solution...

My project name was DOM...

And the dom.lpr built to dom.o and dom.ppu  before the compiler found the dom.pas and compiled it also dom.o and dom.ppu.
I changed my project name to domSomething....

« Last Edit: January 16, 2018, 05:08:44 pm by Altagur »

Thaddy

  • Hero Member
  • *****
  • Posts: 6371
Re: Undefined symbol
« Reply #5 on: January 16, 2018, 06:59:07 pm »
try translating "dom" from Dutch to your native language.... 8-)
https://translate.google.com/#nl/en/dom
I am enjoining wine, not whine....

Altagur

  • New member
  • *
  • Posts: 10
Re: Undefined symbol
« Reply #6 on: January 16, 2018, 08:22:25 pm »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus