[Wine] problem when use dll.so from wine app
david.nguyen
wineforum-user at winehq.org
Mon Dec 15 22:14:50 CST 2008
Hi all,
i write a windows dll and use it on linux system following:
1. i use windump to dump dll to .spec, .c, .h file
winedump spec Simple.dll -f Simple -I "*.h"
it export 3 file: Simple.spec, Simple_main.c, Simple_dll.h
2. i use wingcc to build stub dll(native dll)
winegcc Simple_main.c Simple.spec -o libSimple -shared -fPIC
it export file : libSimple.dll.so
3. i write wine app and link to libSimple.dll.so: main.c
#include "Simple_dll.h"
int main(int argc, char **argv) {
SIMPLE_ShowText();
return 0;
}
i use winegcc to complie main.c and link to lib:
winegcc main.c -o main -L. -lSimple.dll
it complie and link ok but when i run app then it error is:
err:seh:setup_exception_record stack overflow 828 bytes in thread 0009 eip 60063d4f esp 00230ff4 stack 0x230000-0x231000-0x330000
anybody know why pls help me, my process correct or not?
Thanks very much,
More information about the wine-users
mailing list