Yeah, got it.
I just had to append "/taglib" to the "-IC:/MinGW/msys/1.0/local/include" argument I had supplied in the Makefile.PL.
Unfortunately there's now a write() function in ostream that's getting #define'd to "PerlIO_write" ... which breaks the build. Have to see if I can undef something somewhere and fix that.
Cheers, Rob
Update: #undef write (and #undef read), then change a "char**" declaration in iconv_wrap.h to "const char**" get me to:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/streambuf:569:7: err
+or: expected ')' before '*' token
which means what ? ... that the file is being parsed as a C file instead of a C++ file ? ... but afaict there has been no invocation of gcc - only g++ has been invoked. I'm probably not ready for C++ and (God willing), I hope I never bloody-well am.
When I build taglib, I find that there's also a libtag_c.dll and libtag_c.dll.a produced - which, I assume, are the C versions of the library. It's a pity that Audio::TagLib doesn't build against that C library instead. | [reply] [d/l] |
Just preceding that call (and any others) with #undef write would get you past that problem.
Of course, it may well open you up to another bunch of similar insanities.
Whichever lazy bugger thought that redefining half the C-runtime to PerlIO_whatever was a good idea should be taken out and shot.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
| [reply] [d/l] |
| [reply] |