[bug] wordexp.h is not C++ friendly

Moulding, Daniel - 0663 - MITLL dmoulding@ll.mit.edu
Tue Jun 8 21:40:00 GMT 2010


Hi,

I just found that wordexp.h is not C++ friendly because it doesn't wrap
declarations in extern "C". As a result, when called from within a C++
program, the wordexp() and wordfree() functions wind up as undefined
references during link.

I'd submit a patch but have already spent too much time today trying (and
failing miserably) to get newlib to build under Cygwin.

Thanks,

Dan Moulding
MIT Lincoln Laboratory
Group 63, Wideband Tactical Networking
Digital Prospectors
www.dpcit.com
email: dmoulding@ll.mit.edu
Phone: (781) 981-4957 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5287 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20100608/95e9b459/attachment.bin>


More information about the Newlib mailing list