This one is dumb I cannot link this program...

$ make
gcc -g -I../src -o iniexample iniexample.c -I../src -L.. -liniparser

And it runs...

g++ -g  -L../iniparser -liniparser  afp2text.o codeconvert.o -o afp2text
afp2text.o(.text+0x291): In function `main':
/data/program/afp2text/afp2text.cpp:149: undefined reference to
`iniparser_load'
collect2: ld returned 1 exit status
make: *** [afp2text] Error 1

Noting g++ I have used extern "C" { in the header file.

-- 
Thanks
KenF
OpenOffice.org developer

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to