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

Jeff Johnston jjohnstn@redhat.com
Wed Jun 9 07:14:00 GMT 2010


Sorry to hear you are having problems.  I have added the __cplusplus 
wrapper to wordexp.h.  There also was a recently discovered issue with a 
recent patch that was breaking Cygwin builds that was patched today as well.

If you experience further problems, please post to the Cygwin list and 
here as well.

-- Jeff J.

On 06/08/2010 04:06 PM, Moulding, Daniel - 0663 - MITLL wrote:
> 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
>



More information about the Newlib mailing list