Interface declaration of external functions break linking on WinCE
Original Reporter info from Mantis: Laksen
-
Reporter name: Jeppe Johansen
Original Reporter info from Mantis: Laksen
- Reporter name: Jeppe Johansen
Description:
This bug was prompted by this forum post: http://www.lazarus.freepascal.org/index.php/topic,11638.0.html
SDL.pas will indeed generate an external reference with name SDL__PUTENVPCHAR
$LONGINT instead of _putenv as it should if _putenv is declared in the interface too
On Win32 it works as it should
Attached is a very short example that shows the problem(Compiling for wince will generate an undefined reference to SOMEUNIT_TESTEXTERNAL$LONGINT instead of TestExternal)
Mantis conversion info:
- Mantis ID: 18371
- OS: Wince
- Platform: ARM+i386
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 16854 (#cc10ab57)