Here is how the command line should look:
g++ -L"C:\static\lib\directory" main.o -o staticlibusr.exe -lmystaticlib
You would get this by adding "C:\static\lib\directory" to the linker directories (important). Then adding "mystaticlib" to the link libraries.