[parted-devel] using Parted

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Fri Feb 23 21:09:51 CET 2007


>      I am using parted.h but the functions are not being
>  included . It says undefined refernce to function.What do I do?

The libparted library is not part of the standard C library. Therefore you
have to specify it explicitly to GCC so that it can link it.

Try something like:
$ gcc foo.c -o foo -lparted

For details see the various Makefile.am in the Parted sources.

Happy hacking,
Debarshi
-- 
husband    v. use sparingly; conserve; save
husbandry  n. frugality; thrift; agriculture
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070224/4a1224ff/attachment.pgp


More information about the parted-devel mailing list