| Subject: Impossible to compile: strndup unavailable on OS X |
Author: |
Date: 07/02/2012 19:37 |
| | Hello there!
Im sure Ive compiled httrack before on OS X 10.6.8 (Snow Leopard), but I
just tried the new 3.46.1 version to no avail.
While compiling I get this error:
Undefined symbols:
"_strndup", referenced from:
_hts_convertStringToUTF8_ in libhttrack.a(htscharset.o)
_hts_convertStringFromUTF8 in libhttrack.a(htscharset.o)
_hts_convertStringToUTF8 in libhttrack.a(htscharset.o)
ld: symbol(s) not found
Reading around Internet, I realized strndup is a GNU extension, not adopted on
OS X (at least Snow Leopard).
Is there a way you can release a version without it? Perhaps a more all-around
malloc + strncopy alternative?
Thanks in advance, and keep it up! | |
|
|
|
|
9
Created with FORUM 2.0.11