views:

15

answers:

0

How can you compile the VirtualDiskAPI on cygwin? I downloaded the windows version of the SDK from here, and put it in my working directory under vmdevkit. I try to compile as follows:

gcc -Wall -I./vmdevkit/include -L./vmdevkit/lib -lvixDiskLib -o vmscraper vmscraper.c

All my program does is include the files and call connect and disconnect. Gcc doesn't complain about not finding any files, but it gives me undefined references:

/tmp/ccYvVQNG.o:vmscraper.c:(.text+0xad): undefined reference to `_VixDiskLib_Connect'
/tmp/ccYvVQNG.o:vmscraper.c:(.text+0xdc): undefined reference to `_VixDiskLib_Disconnect'

I tried downloading the linux version and using those libraries, but gcc simply didn't find them.

Am I forced to use MSVC++ or is there a way to do this with gcc/cygwin?