How do I compile a .cpp source file into a .dll?
See Question&Answers more detail:osThere are two steps you need to follow in order to compile a dll:
Here is one example using gcc:
gcc -c source.cpp //compile sources; will output "source.o"
gcc -shared -o mydll.dll source.o //add -shared to create a dll, will output "mydll.dll"