|
|
 |
RE: FN-FORUM: compiling PHPain on linux (warning: long and boring)
date posted 30th January 2004 17:04
> tried adding a #include "iconv.h" (which included the line
> "extern int
> _libiconv_version;") to iconv.c to no avail. I'm assuming it was
> already included (can't remember much of my C).
Hmmm. Under some circumstances, that *should* do it:
"extern int blah" says that there's this integer
called blah that has been declared somewhere else.
It's expected that hooking it all together is to be
taken care of at link time. #including iconv.h
should have forced the error to the link stage -
did it? If it *didn't* and you still got an error
at the compile stage of iconv.c, are there any
#ifdef/#else/#endif clauses around the extern
declaration in iconv.h? If so, it may be that
something in the build means that that extern
declaration isn't actually used, hence the compile-
time error.
As a final bodge solution, after any #includes in
iconv.c, you could try
extern int _libiconv_version ;
That might explode horribly, or it *may* just work.
And debugging C compilation problems at arms length
is a bit tricky :)
Regards,
--Chris
Chris Marshall
Secure Systems Integration Ltd
Web: http://www.secure-si.co.uk/
Tel: +44 (0) 7970 459 553
Fax: +44 (0) 1954 201 741
E-mail: [EMAIL REMOVED]
Pager: [EMAIL REMOVED]
(short message only)
|
 |
|