   statically linking direct x .lib with mingw
  Does anyone know what the command is to statically link a .lib file using mingw.  I know it goes something like:  -ld -Lc:/directory -lthelib.  Thanks   
  The -L switch adds a directory to the search path.  The -l (ell, not one) switch adds a library to be linked in (starts with lib, ends in .a, but .lib may also be supported).You can try just adding the .lib in explicitly on the command line, just like a .c, .cpp, or .o/.obj file.  You don't need to use the -L and -l switches.Keep in mind that order counts, since archives (.lib files) are scanned only once in the order they appear to satisfy symbols.  You may include a library more than once on the command line.   