GCC (MinGW) can't link your app against a VC compiled lib. You need to download the following package instead.
http://downloads.sourceforge.net/mingw/w32api-3.10.tar.gz?modtime=1186139469&big_mirror=1
Hmmm not sure I how I would go about using the win32api archive you quote. How would I use this?
I managed to get gdi32.lib to link by using Settings->Complier and Debugger-> selcting the linker settings Tab and pointing to gdi32.lib.
Now I get the following build log displayed...
-------------- Build: Debug in pdfinfo ---------------
Linking console executable: bin\Debug\pdfinfo.exe
obj\Debug\pdfinfo.o: In function `ZN6Object9getStringEv':C:/xpdf-3.02/xpdf//GString.h:(.text+0xa3): undefined reference to `parseArgs'
:C:/xpdf-3.02/xpdf//GString.h:(.text+0x13f): undefined reference to `printUsage
'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
Looking at the Gstring.h header, what does the reference to (.text+0x13f) refer to ? I can't see any reference to `printUsage'.
Just one last hurdle to overcome and hopefully I'll have a working binary. Thanks for all the input and assistance thus far
.
Could it be something to do with the following (taken from MS_MAKE.BAT):
GHash.cc, GList.cc, GString.cc, gmem.cc, gmempp.cc, gfile.cc, parseargs.c
Needing to be compiled as objects file and output as Goo.lib ?
and...
FoFiBase.cc, FoFiEncodings.cc, FoFiTrueType.cc, FoFiType1.cc, FoFiType1C.cc
Needing to be compiled as object files and output as fofi.lib ?
How do I produce library files to link in?
update:
Looking at the ms_make.bat file again I see I also need to link shell32.lib ,user32.lib, advapi32.lib. So I'll add these and see how I progress.
I've noticed MinGW\lib has the following libraries: libshell32.a ,libuser32.a, libadvapi32.a but no libgdi32.a there or in the linked above. Is there an alternative library or something to use?