25.05.13, 20:25, Reinier Olislagers пишет:
In the code above, I'm loading the resource from the executable.
However, Paramstr(0) is not reliable on all platforms.
Is there a better way of doing this?
Yes.
Resource := FindResource(HInstance, 'SQLSCRIPT', RT_RCDATA);
if Resource <> 0 then
begin
On 25 May 2013, at 14:25, Reinier Olislagers wrote:
> In the code above, I'm loading the resource from the executable.
> However, Paramstr(0) is not reliable on all platforms.
It's worse: on Unix platforms, even if you know the full path it's unsafe
because the binary may have been unlinked sin
I got it. I found all the required static libraries by going searching
through nm *.a on Linux and looking for which library had the missing
functions, then I linked to that lib which gave me a whole new set of
missing functions and I repeated the process until nothing was missing.
Also, everything
Okay, had tried ...
{$linklib msvcrt} // libmsvcrt.a copied from Linux /usr/i686-mingw-w64/lib
{$linklib tess} // my static lib
Then I installed dependency walker (per your advice) and inspected
msvcrt.dll. That dll seems to have the missing functions but with the names
a bit different in places
In our previous episode, Koenraad Lelong said:
> I just tried to download fpc for arm-linux. The links on the website are
> broken.
> Now it is :
> ftp://freepascal.stack.nl/pub/fpc/dist/arm-linux-2.6.2/fpc-2.6.2.arm-linux.tar
> It should be
> ftp://freepascal.stack.nl/pub/fpc/dist/2.6.2/arm-linux
Hi,
I just tried to download fpc for arm-linux. The links on the website are
broken.
Now it is :
ftp://freepascal.stack.nl/pub/fpc/dist/arm-linux-2.6.2/fpc-2.6.2.arm-linux.tar
It should be
ftp://freepascal.stack.nl/pub/fpc/dist/2.6.2/arm-linux/fpc-2.6.2.arm-linux.tar
It appears every mirror is
{$linklib msvcrt} should contain them (try running dependencywalker on
msvcrt.dll to make sure) the other linklib-s are MinGW libs. FPC should be
able to directly link to dll, but it's worth trying to put .a found in MinGW
lib for each dll, as how FP IDE does it.
--
View this message in context:
Can someone point me in the right direction towards solving this problem?
I built a static libraries on Linux based on some open source c and h
files. I can compile things fine with gcc/mingw-265 and use ar to turn the
object files into a static lib (libtess.a). The problem is when I try to
compil