Recent

Author Topic: multiple Symbols  (Read 620 times)

paule32

  • Hero Member
  • *****
  • Posts: 645
  • One in all. But, not all in one.
multiple Symbols
« on: July 18, 2025, 06:33:05 pm »
Hello,
I compile the system.pas as follows:

Code: Bash  [Select][+][-]
  1. fpc.exe -dDLLEXPORT -dLANGDEU -dDLLDEBUG -n -B -Twin64 -FE. -Fu. -O3 -a -Anasmwin64 system.pas
  2. nasm -fwin64 -osystem.o system.s
  3.  

Then in my main Module, I include the system.o with:
{$L system.o}

But then, I get multiple Symbols defined Error's ...
So, how can I prevent this Error's and how can I use {$L ...} correctly ?
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12630
  • FPC developer.
Re: multiple Symbols
« Reply #1 on: July 18, 2025, 07:39:37 pm »
Make sure the symbols are not multiply defined

 

TinyPortal © 2005-2018