Page 1 of 1

compilation error with libdvdcss-1.2.8

Posted: 03 Nov 2004 17:01
by edveeinc
I have downloaded libdvdcss-1.2.8. I have attempted to compile under msys and mingw under Windows XP. These are the error messages :

C:\msys\1.0\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to 00401000
C:/msys/1.0/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16'
make[3]: *** [libdvdcss.la] Error 1
make[3]: Leaving directory `/c/NG/vlc-0.7.2/libdvdcss-1.2.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/NG/vlc-0.7.2/libdvdcss-1.2.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/NG/vlc-0.7.2/libdvdcss-1.2.8'
make: *** [all] Error 2

Have anyone run into this?

vy

Posted: 04 Nov 2004 13:11
by danber
Same prob here :cry:

Posted: 06 Dec 2004 12:50
by gbryan
I was able to fix this problem by adding an empty main() function to one of the libdvdcss source files, for example in error.c add:

int main()
{
}

I was than ableto build libdvdcss-2.dll without problems