[LLVMdev] CommandLine.cpp:189: error: `strdup' undeclared

Misha Brukman brukman at uiuc.edu
Sat Jul 3 19:34:01 PDT 2004


On Sun, Jul 04, 2004 at 01:14:42AM +0200, Henrik Bach wrote:
> Is the patch you send to me still valid though?

Well, the patch adds #include <cstring> to CommandLine.cpp, so you
should try the patch first.  If it does not work, then the Interix SDK
<cstring> is not a fully complete substitue for <string.h>, which it
should be, then you may have to manually try changing the <cstring> to
<string.h> and go from there.

If that is the case, you may encounter other problems elsewhere in the
source code that may also require <string.h> in place of <cstring> ...

Hope that helps.

-- 
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu




More information about the llvm-dev mailing list