[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Handle-info] compile c client library
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
On 17 August 2012 14:06, Finston, Laurence <email@example.com> wrote:
>> 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: firstname.lastname@example.org [email@example.com] on behalf of Peng Du [firstname.lastname@example.org]
> Sent: Friday, August 17, 2012 2:20 PM
> To: email@example.com
> 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,
> Handle-Info mailing list
Handle-Info mailing list