This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PathRemoveFileSpec link problem..


"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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]