Page 1 of 1

Why is binaryName.lib generated alongside my program?

Posted: Sat May 24, 2025 9:37 pm
by Quin
Sorry that I don't have any code here, I've only seen this with one of my large applications, and I can't figure out why it happens.
I link against a lib file, in this case called UniversalSpeechStatic.lib. This works fine, but whenever I build my program, a file with the same name as my binary, but with .lib appended to the end instead of .exe, is created. It's always 1544 bytes, and deleting it has no consequence that I can see. But my question is, what is this for, why is it generated, and how can I get rid of it? I've linked against other .lib files and not had this problem.
Thanks!

Re: Why is binaryName.lib generated alongside my program?

Posted: Sat May 24, 2025 10:52 pm
by idle
I'm not sure what causes the compiler to produce a .lib when you're compiling an exe, I think it only does it for the linking stage when your importing functions from other libs that import symbols themselves perhaps.