[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Handle-info] compile c client library
Dear Laurence,
Thanks very much for your reply!
I did try to set environment variables, as required by install.txt.
Specifically, I used "./configure --prefix=$PWD" and accordingly I set
LD_LIBRARY_PATH=$PWD/lib/perl/5.10/auto/hdllib/ . But the problem
still remains.
Best wishes,
Peng
On 17 August 2012 14:06, Finston, Laurence <laurence.finston@gwdg.de> wrote:
> Hello,
>
>> I have installed (configure - make - make install) the c version
>> client libraries. But when I tried to make the programs in hcc5/test,
>> it keeps reporting "undefined reference to HDLCreate" or "undefined
>> reference to HDLDelete", depending on the specific program to build.
>
>> Would anyone kindly advise me on this? Thanks very much!
>
> This is just general information, since it's been a couple of years since I installed the C client library (with some help from one or more people on this mailing list). I was, however, encouraged to use the Java library instead at the time.
>
> You have to make sure that the library is found when linking. You can do this with the -l and -L flags.
> -l is for the name of the library, without the prepended `lib', e.g., `-lpcat' for the library `libpcap'.
> -L is for the search path for libraries. So, if you've installed a library in a non-standard location, you can add directories (separated by the `:' character) to the search path with this linker option.
>
> Alternatively, you could set the appropriate environment variables.
>
> If you type `configure --help', you may get something like this (if the configure script was generated by Autoconf):
>
> [...]
> Some influential environment variables:
> CXX C++ compiler command
> CXXFLAGS C++ compiler flags
> LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
> nonstandard directory <lib dir>
> LIBS libraries to pass to the linker, e.g. -l<library>
> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
> you have headers in a nonstandard directory <include dir>
> CC C compiler command
> CFLAGS C compiler flags
> [...]
>
> On my (Linux) system, the default search path for libraries is set in `/etc/ld.so.conf'.
>
> I hope this helps.
>
> Laurence Finston
> ________________________________________
> From: handle-info-admin@cnri.reston.va.us [handle-info-admin@cnri.reston.va.us] on behalf of Peng Du [eddy.pdu@gmail.com]
> Sent: Friday, August 17, 2012 2:20 PM
> To: handle-info@cnri.reston.va.us
> Subject: [Handle-info] compile c client library
>
> Hello there,
>
> I have installed (configure - make - make install) the c version
> client libraries. But when I tried to make the programs in hcc5/test,
> it keeps reporting "undefined reference to HDLCreate" or "undefined
> reference to HDLDelete", depending on the specific program to build.
>
> Would anyone kindly advise me on this? Thanks very much!
>
> Best regards,
>
> Peng
>
> _______________________________________________
> Handle-Info mailing list
> Handle-Info@cnri.reston.va.us
> http://www.handle.net/mailman/listinfo/handle-info
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info