<div dir="ltr">Hello again,<div><br></div><div>here's a quick update, I decided to make a DLL instead. Much easier and cleaner. Making good progress. Will publish when done.</div><div><br></div><div>Cheers,</div><div>Tobias</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 6:50 PM <<a href="mailto:tobiasgiesen@gmail.com">tobiasgiesen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
I am trying to make an SFTP client class based on putty. It will be open source and I think quite useful <br>
for many people, but it looks like I need some help :=)<br>
<br>
I need to link in over 100 .o files compiled with gcc.<br>
I am using the fpc 3.1.1 snapshot on Win64 for now.<br>
<br>
ISSUE #1: <br>
Undefined symbol: fopen<br>
this line does not help:<br>
function fopen(filename: PAnsiChar; mode: PAnsiChar): Pointer; cdecl; external 'MSVCRT.DLL' name 'fopen';<br>
It works only when I write the function myself using cdecl; export;<br>
Can this be fixed?<br>
<br>
ISSUE #2: <br>
Undefined symbol: __imp_isspace<br>
Undefined symbol: __imp_GetTickCount<br>
and similar ones ... I think gcc added the __imp prefix ... <br>
apparently I need to add an import library, but how?<br>
<br>
Overall the linker errors are not so many and I believe it will eventually work.<br>
<br>
Cheers,<br>
Tobias<br>
<br>
</blockquote></div>