Re: PathRemoveFileSpec link problem..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux