I have a gui toolkit which is for x86 platform. previously I used to compile it with VC compiler. Now I am porting it to gcc for which I am using MinGW. Now all the files are getting compiled with MinGW but during linking it gives undefined symbols errors in the object files. The functions definition is in windows libraries. How should I link the windows libraries with MinGW.
I have written a makefile for it.
the linking step goes as
$(LIBFILE) : $(OBJFILE) $(MAKEFILE)
$(LD) --entry=0x409 $(OBJFILE) USER32.LIB
the functions are in USER32.LIB.
where and how should I give the path?
My program files path name has spaces in between.