[augeas-devel] adding public api calls

Christopher Harvey chris at basementcode.com
Fri May 14 13:02:31 UTC 2010


I started coding aug_lens_put and it's going ok, but I'm having trouble
adding public api calls. Consider the attached patch. When I compile a
link against the library in the src/.libs file I get compile errors:

test_put.c:(.text+0x67): undefined reference to `aug_lens_put'
collect2: ld returned 1 exit status

but aug_init and aug_close are defined. Did I miss a step to export that
function?

Thanks.

btw, i have more code than just that patch, I'm only posting the minimum
code to explain the problem.

-- 
My GnuPGP key at:
www.basementcode.com/public_key.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add-api.diff
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100514/7928150d/attachment.ksh>


More information about the augeas-devel mailing list