annalopez
Contributor
Contributor

problem in compile my program with vmci.lib

Dear All,

I have installed Vmware on linux machine then I have developed a program to send host system(linux) data to client(windows).

I'v used Hdparm program to do this.my problem is to compile makefile with Vmci.lib.I attached my makefile into this post.

when I run make command I have this error:

  1. make

cc -s -static -o hdparm hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o

hdparm.o: In function `process_dev':

hdparm.c:(.text+0x107): undefined reference to `VMCISharedMem_Create'

hdparm.c:(.text+0x140): undefined reference to `VMCIDs_Lookup'

hdparm.c:(.text+0x179): undefined reference to `VMCISharedMem_Detach'

hdparm.c:(.text+0x2ba): undefined reference to `VMCIResource_AddClientPrivileges'

hdparm.c:(.text+0x2d2): undefined reference to `VMCIDs_Register'

collect2: ld returned 1 exit status

make: *** Error 1

I have put vmci.lib in /usr/lib but still I have this error.

Please help me to solve this problem.

Kind Regards

A.lopez

0 Kudos
0 Replies