×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Some errors in c++ client compilation

  • Posts: 2
  • Thank you received: 0
Hi,
when I compile my client I obtain this errors
g++ -L/usr/lib -o "telescope-point" ./src/DEC.o ./src/RA.o ./src/baseclient.o ./src/myclient.o ./src/point.o ./src/telescope-point.o -lindi -lindiclient -lcfitsio -lnova -lindidriver
./src/baseclient.o: In function `INDI::BaseClient::connectServer()':
/home/michele/workspace/telescope-point/Debug/../src/baseclient.cpp:110: undefined reference to `pthread_create'
./src/baseclient.o: In function `INDI::BaseClient::disconnectServer()':
/home/michele/workspace/telescope-point/Debug/../src/baseclient.cpp:139: undefined reference to `pthread_join'
/usr/lib/libindiclient.a(basedevice.o): In function `INDI::BaseDevice::setBLOB(_IBLOBVectorProperty*, _xml_ele*, char*)':
basedevice.cpp:(.text+0x2a72): undefined reference to `uncompress'
collect2: ld returned 1 exit status

Cn you help me?
I use Eclipse IDE
thanks
Michele
11 years 2 months ago #14

Please Log in or Create an account to join the conversation.

Hello,

I think you need to link with pthread and libz. Are you using CMake or another build system?
11 years 2 months ago #15

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
Thank you,
I have solved the problem with link at pthread and libz! I use Eclipse for build c++
thanks
Michele
11 years 2 months ago #16

Please Log in or Create an account to join the conversation.

Time to create page: 0.341 seconds