command line arguement for Win32
-
Sir, I have developed an application using Win32. Inside main(){ .. } I have created a server socket and waiting to accept to connect. How should I create an exe fom the command line. It takes WS2_32.lib AS a parameter to give an exe. Pls guide what can be command line parameters so that it can combine with the lib file to create exe..
-
Sir, I have developed an application using Win32. Inside main(){ .. } I have created a server socket and waiting to accept to connect. How should I create an exe fom the command line. It takes WS2_32.lib AS a parameter to give an exe. Pls guide what can be command line parameters so that it can combine with the lib file to create exe..
-
Sir, I have developed an application using Win32. Inside main(){ .. } I have created a server socket and waiting to accept to connect. How should I create an exe fom the command line. It takes WS2_32.lib AS a parameter to give an exe. Pls guide what can be command line parameters so that it can combine with the lib file to create exe..
I think you can just give a
#pragma
directive like:#pragma comment (lib, "ws2_32")
in your source code (It can be a common header file, like stdafx.h, if you're using MFC!) With this directive, you will NOT require any command line parameters, or even to include the LIB/DLL file in your project settings. The compiler will pick up the LIB file and use it while compiling. * Don't wish it was easier, wish you were better! *
-
You cannot link a library to an executable at runtime. How do you expect to compile the winsock library at runtime? Kuphryn
my aim is ti likn the object file and the lib file to create the exe. How should I go about this
-
You cannot link a library to an executable at runtime. How do you expect to compile the winsock library at runtime? Kuphryn
kuphryn wrote: You cannot link a library to an executable at runtime. Sure you can. It's called explicit linking.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
kuphryn wrote: You cannot link a library to an executable at runtime. Sure you can. It's called explicit linking.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen