VMware {code} Community
annalopez
Contributor
Contributor

how to compile my program using vmci

Dear all,

I have written a program to gain host information and pass to guest OS

using VMCI.In order to ge host information ,I've used hdparm.I am trying to compile

my program with vmci.lib but when I run make command I have this error:

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

Can anybody explain it?What can I do to compile my program with this library(vmci.lib)

how can I edit hdparm makefile to include vmci.lib?

A.lopez

0 Kudos
0 Replies