"Walliss, Darren" wrote: > $ gcc pathRemove.c -o pathRemove -mno-cygwin > /cygdrive/c/DOCUME~1/wallissd/LOCALS~1/Temp/ccOswrXZ.o:pathRemove.c:(.te > xt+0x46) > : undefined reference to `__imp__PathRemoveFileSpecA@4' > collect2: ld returned 1 exit status > > What am I doing wrong?? You need to add -lshlwapi to the end of your link command line to link against the library. Brian