> "gcc -o myprog myprog.c -L./ -lfoo" I get an error for each one of the This isn't the right forum for this (try the binutils or cygwin forums), but try just listing the .dll itself on the gcc command line (no -L or -l).