Thanks all for the answers.
rc only should not work at all, it should also refer to res or only refer to res.
This should throw an error: {$IfDef WINDOWS}{$R 'manifest.rc'}{$EndIf}
IIRC I added that line to improve compatibility between FreePascal and Delphi, and it came from a discussion in the forums long time ago.
Not true. See https://wiki.freepascal.org/Lazarus_Resources
Maybe not related but I should read that article. Thanks,
FPC is SEH on Windows, so a SEH DLL would be more logical than a DWARF (exception frames) DLL on Windows.
So allegro5.dll might be the culprit. I suspect it as previously I found other incompatibility issues with GUI (Allegro define a few routines to show message boxes, file dialogs and create menus that don't work as they should when called from Pascal) and threads (Allegro define it's own thread management and seems not compatible with the RTL ones so I didn't include it in the package).
Is there a workaround?
I'm getting error, Lazarus 4.8-fixes, fpc 3.2.2, Win 11, all 64 Bit.
Perhaps Allegro5..dll itself is causing the error.
I downloaded it from here:
https://github.com/liballeg/allegro5/releases/tag/5.2.11.3
this:
allegro-i686-w64-mingw32-gcc-15.2.0-posix-dwarf-dynamic-5.2.11.3
Edit:
Testprogramm runs and print out "Hello World" without uses allegro5; So Allegro 5 dll is causing the error.
Same error with SEH DLL, error 0xc000007b.
I searched for the error 0xc000007b, but the example programm and allegro libs are 64 Bit.
Thanks both for the testing. I've found that PowerShell is completely silent while CMD (which I found it still exists but must be executed using [Win]+[R]) does return that 0xc000007b error.
Maybe compiling Allegro myself would fix something? But it uses
configure and I have no idea how it works (I tried to learn how it works time ago but my brain almost melted).