Why is binaryName.lib generated alongside my program?

Just starting out? Need help? Post your questions and find answers here.
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Why is binaryName.lib generated alongside my program?

Post 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!
User avatar
idle
Always Here
Always Here
Posts: 6025
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

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

Post 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.
Post Reply