[Scons-users] StaticLibrary problems
Bill Deegan
bill at baddogconsulting.com
Thu Aug 29 11:58:08 EDT 2024
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 <
scons-users at scons.org> 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
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20240829/f6b351aa/attachment.htm>
More information about the Scons-users
mailing list