mingw 编译dll时出的错误?
本帖最后由 u010970542 于 2013-10-25 11:18:18 编辑
http://blog.csdn.net/liushu1231/article/details/8936894
按这篇bolg上编译,做到“然后输入./configure --enable-shared不出意外地话就能成功了,然后输入make,”,也就是make时出错误。刚学,求高手指导。
mingw c x86 win32 asm
yasm -O2 -f win32 -DPREFIX -DHAVE_ALIGNED_STACK=1 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH
=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/pixel-32.o common/x86/pixel-32.
asm
c:\MinGW\bin\strip.exe: 'common/x86/pixel-32.o': No such file
make: [common/x86/pixel-32.o] Error 1 (ignored)
windres --target=pe-i386 -I. -o x264res.dll.o -DDLL x264res.rc
gcc -Wshadow -O3 -ffast-math -m32 -Wall -I. -I. -march=i686 -mfpmath=sse -msse
-std=gnu99 -mpreferred-stack-boundary=5 -fomit-frame-pointer -fno-tree-vectorize
-fno-zero-initialized-in-bss -c -o x264dll.o x264dll.c
x264dll.c:30:13: error: conflicting types for 'DllMain'
BOOL WINAPI DllMain( HANDLE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
^
In file included from c:\mingw\include\windows.h:62:0,
from common/win32thread.h:29,
from common/osdep.h:207,
from common/common.h:117,
from x264dll.c:26:
c:\mingw\include\winbase.h:1051:13: note: previous declaration of 'DllMain' was
here
BOOL WINAPI DllMain(HINSTANCE, DWORD, LPVOID);
^
make: *** [x264dll.o] Error 1