3 ms·
I believe this is one of the reasons for object libraries (or archives, the foo.a files on linux/unix), you can then link in all of the object files from one of
by simcop2387 6y ago
I believe this is one of the reasons for object libraries (or archives, the foo.a files on linux/unix), you can then link in all of the object files from one of those at link time without having to list them all at once. That won't get past the 2GB limit on executables but it will get past the command line length.
- jandrese 6y agoI was going to suggest that, but he's running on Windows and I don't know if they are supported there. I guess they probably are since they're a compiler feature.
- com2kid 6y agoThis is correct, a .lib file on Windows has a bunch of .obj files in it that you can then link together. You can also use command files[1] to pass options in instead of using the command line. [1] https://docs.microsoft.com/en-us/cpp/build/reference/linking?view=msvc-160 https://docs.microsoft.com/en-us/cpp/build/reference/linking... to pass
- deleted 6y ago[deleted]
- fmxexpress 6y agoI searched for an option for make to do a command line file like this but didn't see one so struck out.