Recent

Author Topic: -Tembedded Option don't have Effect to create DLL/Resource Files  (Read 573 times)

paule32

  • Hero Member
  • *****
  • Posts: 645
  • One in all. But, not all in one.
Hello,
is it possible to let FPC create dummy Code for Function's and Procedure members ?
The current state of Code that is produced (Assembly and Binary) is about 10 Bytes. So I could save some space when post-process the produced assembly Code.
But then I don't know how to Link properly to a executable.
Because when I try to use the CLI Option -Tembedded I get Error:

Code: Bash  [Select][+][-]
  1. fpc.exe -dDLLEXPORT -dLANGDEU -dDLLDEBUG -dDLLRES -n -B -Tembedded -FE. -Fu. -O3 rtllib_enu.pas
  2. rtllib_enu.pas(1,19) Error: Creation of Dynamic/Shared Libraries not supported
  3. rtllib_enu.pas(3,2) Error: Resource files are not supported for this target
  4. system.pas(256,1) Fatal: There were 2 errors compiling module, stopping
  5. Fatal: Compilation aborted
  6. Error: C:\FPC\3.2.2\win64\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
« Last Edit: July 20, 2025, 10:51:29 am by paule32 »
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: 12708
  • FPC developer.
Re: -Tembedded Option don't have Effect to create DLL/Resource Files
« Reply #1 on: July 20, 2025, 10:53:18 am »
embedded is meant for like microcontrollers. Not minimal windows, so obviously it has no Windows DLL support.

 

TinyPortal © 2005-2018