Tater, surely..
- it's polib that throws the error, not LZMA - that's why it's called "internal"
But that still leaves the possibility of you feeding it some data that is causing that internal error.
A quick look into the makefiles show that there is a reference to
!include "../../../CPP/Build.mak"
in the ...\C\Util\LzmaLib folder just after an reference to resource.re, which could cause issues if there is some C++ related stuff in there that a plain C compiler like Pelle's C doesn't (properly) processes...
- most of the stuff in the LZMA\C folder just builds fine
Well,
what doesn't? That could give another hint as to what could cause the error...
- and no, it's not Linux code
Fairly irrelevant, it is supposed to be plain ANSI C and portable between OS's.
It's just that .bz2 files aren't very common in the Windows world, and to an even lesser extend, tar files.
But to find out what is causing the error, you have not provided even remotely enough information in order to reproduce and verify that issue...
Ralf