Hi, Have a look at the source for Win32::GUI as it has manyXS files but only one library is created - I've used the same approach for a cross platform project (I would post some code but I am not at my desk).
Cheers, jez -----Original Message----- From: "Marvin Humphrey" <[EMAIL PROTECTED]> To: "xs" <perl-xs@perl.org> Sent: 05/01/07 20:01 Subject: Splitting up large XS file Greets, I have an XS distro that has maybe 50 or 60 packages in it. My strategy has been to put everything in one big XS file, so that only one shared library gets compiled. However, the XS file is now over 4000 lines, and the compilation time for 10000-line monolithic C file it generates is becoming an issue. Is there a way to split up that C file so that fragments can be conditionally compiled, yet still end up with only one shared library? Marvin Humphrey Rectangular Research http://www.rectangular.com/