On the command line use:
cl.exe /LD <files-to-compile>
or, if you prefer the more verbose & explicit version:
cl.exe /D_USRDLL /D_WINDLL <files-to-compile> <files-to-link> /link /DLL /OUT:<desired-dll-name>.dll
More Related Contents:
- Reading a character with scanf_s
- How to use kbhit and getch (C programming) [closed]
- LoadLibrary() an EXE?
- Program gives unstable output? [closed]
- Passing values to macros by for loop
- How do I safely pass objects, especially STL objects, to and from a DLL?
- Enabling VLAs (variable length arrays) in MS Visual C++?
- How to send EOF via Windows terminal
- How to list physical disks?
- Getting LibCurl to work with Visual Studio 2013
- How can I do a CPU cache flush in x86 Windows?
- How to overcome Stack Size issue with Visual Studio (running C codes with big array)
- system(“cd “) in a C program
- Sleep function in Windows, using C
- What happens to global variables declared in a DLL?
- How to link to a static library in C?
- C compiler for Windows? [closed]
- How to target Windows XP in Microsoft Visual Studio C++ [duplicate]
- Difference between ‘strcpy’ and ‘strcpy_s’?
- multi-word addition using the carry flag
- winapi: CreateProcess but hide the process’ window?
- What does a “CALLBACK” declaration in C do?
- Copying content from a hidden or clipped window in XP?
- How to set up pthreads on windows?
- Windows & C++: extern & __declspec(dllimport)
- Is rebasing DLLs (or providing an appropriate default load address) worth the trouble?
- Is there a way to use fopen_s() with GCC or at least create a #define about it?
- How can I take a screenshot and save it as JPEG on Windows?
- How can I read a child process’s output?
- CreateDesktop() with vista and UAC on (C, windows)