Recommended Posts

Hey!
I'm making a project in C++, I'm trying out Rakkarsoft's networking API if anyone is interested. I added all the source files to my project, because that's what they say one should, and it wouldn't work otherwise.
Well, so there I am, experimenting. I'm pretty new to C++ too so I just tried to comment out all the code having to do with Rakkarsoft, and left just int main() { return 0; }, to see what would happen. I expected the .exe to be small as with my previous sample programs, but it is still (after commenting out) 6 MB. I thought the linker would only link in what is necessary so this surprises me a bit.
What is happening?
Also, what is the difference between .lib and .o files?

Share this post

Link to post

Share on other sites

In Visual Studio, you can go under Build->Configuration Manager. You will see a list of all the projects in the current solution. Find the one you're interested in, and under the column labelled "Configuration", change from "Debug" to "Release".