[SOLVED] FINALIZE$_$OBJPAS symbol missing? lazarus / 64-FPC development ---------------------------------------------------------------------- Key-Real · 2024-06-20 08:56 Hi, I'm now implementing the objpas part. I successfully compile my system unit and now: whats this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/local/mipsel-unknown-elf/bin/mipsel-unknown-elf-ld: test.o: in function `INITFINAL': (.data+0xc): undefined reference to `FINALIZE$_$OBJPAS' ---------------------------------------------------------------------- Thaddy · 2024-06-20 09:50 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. ---------------------------------------------------------------------- Key-Real · 2024-06-20 10:28 the ./rtl/objpas/objpas.pp compiles correct or what you mean? ---------------------------------------------------------------------- Thaddy · 2024-06-20 10:43 what you showed and i expect: you forgot something... ---------------------------------------------------------------------- marcov · 2024-06-20 10:53 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 · 2024-06-20 11:05 oh, ups I forgot to include the .o file in the linker list. sorry for bothering