Hi All,
I use $linklib to link my fpc program with a C++ so file. I found that
the $linklib directive does NOT conform with ld specification. This is
what I did and found:
PURPOSE
I want to link to a C library that does NOT start with "lib" prefix. The
library's name is thostmduserapi.so
P
>
>
> 1) Did you give the correct name ? 2) Is the current dir in the linker
> search path ? AFAIK the current dir is by default not in the linker search
> path.
>
I am sure the name is correct. No matter I supply the linker path (-Fl.)
or not, it does not work (i.e. ld reported cannot find -ltho
On Saturday, September 21, 2013 12:03 PM, patspiper
wrote:
> On 21/09/13 18:56, wkitt...@windstream.net wrote:
> > On Saturday, September 21, 2013 6:27 AM, patspiper
> wrote:
> >> On 21/09/13 12:15, wkitt...@windstream.net wrote:
...
> >>> a[n] := chr($C2)+chr($AD) for two byte codes...
>
On 21/09/13 18:56, wkitt...@windstream.net wrote:
On Saturday, September 21, 2013 6:27 AM, patspiper wrote:
On 21/09/13 12:15, wkitt...@windstream.net wrote:
[trim]
yeah, the singles are bad examples... i'm really wanting the multiple byte
format to work... i tried both and was told "expected
On Saturday, September 21, 2013 6:27 AM, patspiper wrote:
> On 21/09/13 12:15, wkitt...@windstream.net wrote:
[trim]
> > yeah, the singles are bad examples... i'm really wanting the multiple byte
> > format to work... i tried both and was told "expected string but found
> > byte" or
> > "wor
On Sat, 21 Sep 2013, Xiangrong Fang wrote:
Ok, but when I added these:
implementation
{$linklib libthostintf.a}
{$linklib thostmduserapi.so}
end.
I got:
/usr/bin/ld: cannot find -lthostmduserapi
All the required .so and .a file are in CURRENT dir.
1) Did you give the correct name ?
2)
Ok, but when I added these:
implementation
{$linklib libthostintf.a}
{$linklib thostmduserapi.so}
end.
I got:
/usr/bin/ld: cannot find -lthostmduserapi
All the required .so and .a file are in CURRENT dir.
2013/9/21 Michael Van Canneyt
>
>
> On Sat, 21 Sep 2013, Xiangrong Fang wrote:
>
>
On Sat, 21 Sep 2013, Xiangrong Fang wrote:
Hi All,
I need to use a C++ so file in FreePascal. I have written a C wrapper for it,
which successfully connected to Pascal.
Now my question is, can I use the $linklib directive to link the C-Wrapper
STATICALLY, which in-turn use the shared so
Hi All,
I need to use a C++ so file in FreePascal. I have written a C wrapper for
it, which successfully connected to Pascal.
Now my question is, can I use the $linklib directive to link the C-Wrapper
STATICALLY, which in-turn use the shared so file? I tried to do this but
it complained a lot
On 21/09/13 12:15, wkitt...@windstream.net wrote:
On Friday, September 20, 2013 12:47 PM, Bart wrote:
On 9/20/13, wkitt...@windstream.net wrote:
a[n] := #255; // works
a[n] := $ff; // does not work
ideally, there would be multiple bytes...
a[n] := $C2AD or a[n] := $C2$AD
Not s
On Friday, September 20, 2013 12:47 PM, Bart wrote:
> On 9/20/13, wkitt...@windstream.net wrote:
>
> >
> > a[n] := #255; // works
> > a[n] := $ff; // does not work
> >
> > ideally, there would be multiple bytes...
> >
> > a[n] := $C2AD or a[n] := $C2$AD
> >
>
> Not sure what
11 matches
Mail list logo