Linking Pilot-link libs in gcc

Linking Pilot-link libs in gcc

Post by jef » Thu, 18 Oct 2001 10:54:44



I am trying to play a little with the pilot-link libs in C and am
compiling with gcc. The libs I need (I think) are libpisock. I compile
with the command

gcc prog.c -L/usr/lib -llibpisock -o prog

but I get the error

/usr/bin/ld: cannot find -llibpisock.so
collect2: ld returned 1 exit status

I have checked the /usr/lib directory and both the .so and .a file are
there. Also, /usr/lib are in my LD_LIBRARY_PATH, so I have tried to
compile without the -L option. Same results.Now this may in fact not
be the library I need to get the methods I want in the program, but
I'll worry about that later. Does anyone have any idea why the linker
can't find these libraries?

Thanks
Jeff

 
 
 

Linking Pilot-link libs in gcc

Post by Paul Kimot » Thu, 18 Oct 2001 12:15:44



> I am trying to play a little with the pilot-link libs in C and am
> compiling with gcc. The libs I need (I think) are libpisock. I compile
> with the command

> gcc prog.c -L/usr/lib -llibpisock -o prog

> but I get the error

> /usr/bin/ld: cannot find -llibpisock.so
> collect2: ld returned 1 exit status

You want to say "-lpisock".  The linker adds the "lib" and the ".so"
(or ".a") automagically.

Quote:> I have checked the /usr/lib directory and both the .so and .a file are
> there. Also, /usr/lib are in my LD_LIBRARY_PATH, so I have tried to
> compile without the -L option.

LD_LIBRARY_PATH affects the runtime dynamic loader, not the search path
used by the build-time linker.  Besides, both the linker and the dynamic
loader will search /usr/lib by default.

--
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

 
 
 

1. Using pilot-addresses (part of pilot-link)

Is there a trick to using the pilot-addresses program that's
part of pilot-link included in Red Hat 7.2 ????

The pilot-xfer program seems to work fine as I've been able to
backup the Palm Pilot and have been able to install new programs.

My next step is to try to upload a flat file database of addresses
that I exported out of another database.

It seems that no matter what options I provide I get the following
error immediately:

$ pilot-addresses  -w addr.txt
   Port: /dev/pilot

   Please press the HotSync button now...
Connected...
Unable to open AddressDB

Any suggestions?

--
Greg Gulik                                 http://www.gulik.org/greg/

2. Basic Install Questions

3. Pilot-Link error when running ./configure

4. sigaction with SA_NOCLDWAIT flag

5. How well does pilot-link work

6. Configuring appp

7. pilot-link with usb under Solaris

8. Help with Debian GNU/Linux installation

9. pilot-link question

10. Pilot-link and USB

11. pilot-link error

12. trouble: pilot-link sync w/ plan

13. Linux pilot-link problem -- Unable to bind to port