Recent

Author Topic: [SOLVED] FINALIZE$_$OBJPAS symbol missing?  (Read 1406 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 389
[SOLVED] FINALIZE$_$OBJPAS symbol missing?
« on: June 20, 2024, 10:56:22 am »
Hi, I'm now implementing the objpas part.
I successfully compile my system unit and now:
whats this:
Code: Pascal  [Select][+][-]
  1. /usr/local/mipsel-unknown-elf/bin/mipsel-unknown-elf-ld: test.o: in function `INITFINAL': (.data+0xc): undefined reference to `FINALIZE$_$OBJPAS'
  2.  


« Last Edit: July 10, 2024, 12:48:45 pm by Key-Real »

Thaddy

  • Hero Member
  • *****
  • Posts: 17102
  • Ceterum censeo Trump esse delendam
Re: FINALIZE$_$OBJPAS symbol missing?
« Reply #1 on: June 20, 2024, 11:50:45 am »
Did you implement objpas unit for your compiler?
If you want to support OOP with classes you need that! If you want to support just tp style objects, you need to implement objects unit. Otherwise it is not necessary.
« Last Edit: June 20, 2024, 11:57:13 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Key-Real

  • Sr. Member
  • ****
  • Posts: 389
Re: FINALIZE$_$OBJPAS symbol missing?
« Reply #2 on: June 20, 2024, 12:28:47 pm »
the ./rtl/objpas/objpas.pp compiles correct
or what you mean?

Thaddy

  • Hero Member
  • *****
  • Posts: 17102
  • Ceterum censeo Trump esse delendam
Re: FINALIZE$_$OBJPAS symbol missing?
« Reply #3 on: June 20, 2024, 12:43:09 pm »
what you showed and i expect: you forgot something...
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12255
  • FPC developer.
Re: FINALIZE$_$OBJPAS symbol missing?
« Reply #4 on: June 20, 2024, 12:53:37 pm »
I'd check the linker res file (-s) to see that objpas.o is included, and check the objpas.o if/that the symbol exists.  Do you have a finalization clause in that file? Maybe it because objpas is special, it is hardcoded somewhere for unit ordering reasons.

And of course run the linking with high verbosity for clues.

Key-Real

  • Sr. Member
  • ****
  • Posts: 389
Re: FINALIZE$_$OBJPAS symbol missing?
« Reply #5 on: June 20, 2024, 01:05:30 pm »
oh, ups I forgot to include the .o file in the linker list.

sorry for bothering

 

TinyPortal © 2005-2018