Re: StaticLibrary problems
Bill Deegan <[email protected]> Thu, 29 Aug 2024 08:58:08 -0700
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CH2oFQkBz1CikdLfKricHydQ0mRm_+_XU=Y6rczSkDRRA@mail.gmail.com> |
Edwin, Which OS? Which Compiler? (mingw?) Your example should work fine. Is your problem when the list of source files is > some large number? This works for most people, so either you have a really large number of files, or it's something else odd. Maybe you can include output from your build where it's failing? Are you getting some errors? -Bill On Thu, Aug 29, 2024 at 4:08 AM Edwin H. Bielawski via Scons-users < [email protected]> wrote: > Hello, > > I have problems creating a static library with a large number of files. > It seems that the list has to be completely passed via the command line, > which Windows unfortunately acknowledges this with “line too long”. > I can pass this to the GNU AR tool as a file, but this does not help > because the object files are not generated if they are not specified within > the command. > env.StaticLibrary("mylib", ['main.cpp']) > > Are there any workarounds? > > Regards > Edwin H. Bielawski > > $ scons --version > SCons by Steven Knight et al.: > SCons: v4.3.0.559790274f66fa55251f5754de34820a29c7327a, Tue, 16 Nov 2021 > 19:09:21 +0000, by bdeegan on octodog > SCons path: ['c:\\dev\\programs\\python3x_64\\lib\\site-packages\\SCons'] > Copyright (c) 2001 - 2021 The SCons Foundation > > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users