mingw32 compilation error

Per Inge Mathisen per.mathisen at gmail.com
Mon Oct 17 15:00:39 EDT 2005


Hi all!

I downloaded the 1.0.1 tarball, and did ./configure && make. Got the
following compile error:

 gcc -Wl,--base-file,.libs/libphysfs-1-0-1.dll-base
-Wl,-e,_DllMainCRTStartup at 12 -o .libs/libphysfs-1-0-1.dll  physfs.lo
physfs_byteorder.lo .libs/libphysfs.lax/libarchivers.al/dir.lo
.libs/libphysfs.lax/libarchivers.al/grp.lo
.libs/libphysfs.lax/libarchivers.al/wad.lo
.libs/libphysfs.lax/libarchivers.al/hog.lo
.libs/libphysfs.lax/libarchivers.al/mvl.lo
.libs/libphysfs.lax/libarchivers.al/zip.lo
.libs/libphysfs.lax/libarchivers.al/qpak.lo 
.libs/libphysfs.lax/libplatform.al/unix.lo
.libs/libphysfs.lax/libplatform.al/win32.lo
.libs/libphysfs.lax/libplatform.al/posix.lo
.libs/libphysfs.lax/libplatform.al/os2.lo  
archivers/.libs/libarchivers.al platform/.libs/libplatform.al -lz
k:\eclipse\mingw\bin\..\lib\gcc\mingw32\3.4.0\..\..\..\..\mingw32\bin\ld.exe:
warning: cannot find entry symbol _DllMainCRTStartup at 12; defaulting to
00401000
k:/eclipse/mingw/bin/../lib/gcc/mingw32/3.4.0/../../../libmingw32.a(main.o)(.text+0x97):main.c:
undefined reference to `WinMain at 16'
collect2: ld returned 1 exit status

Looks like ./configure did not recognize the mingw system:

checking if this is BeOS... no
checking if this is Cygwin... no
checking if this is mingw... no
checking if this is MacOS X... no
checking if this is FreeBSD... no
checking if this is OpenBSD... no
checking if this is AtheOS... no
checking if this is OS/2... no
checking if this is MiNT... no

I even tried to force it with "./configure --build=mingw32" without success.

Any ideas?

  - Per



More information about the physfs mailing list