Hello, In the last few days I executed some tests to understand a segmentation fault problem in my pcsdll library working with WineLib in RedHat 9. I created: - A little library pcsdll exporting a function that calls the TlsAlloc function - A little executable pcsmon that calls the exported library pcsdll function and creates a window Linking the library with the command g++ -m32 -march=pentium-mmx -mcpu=i686 -g -shared -Wl,-soname=pcsdll.so ...... when the pcsmon calls the library function the library obtains a segmentation fault in calling TlsAlloc function. Do you have any idea about what I miss? Regards Katia PS: I'm using wine 20050111 version -- Katia Maculan Developer ISIS Papyrus Italy Srl Tel: (+39) 0125 6455400 Fax: (+39) 0125 6455150 E-mail: katia.maculan(a)isis-papyrus.com Info: info(a)isis-papyrus.com Hotline: +43-2236-27551-111 Visit our Website: http://www.isis-papyrus.com
On Mon, 31 Jan 2005 14:34:23 +0100, Katia Maculan wrote:
Hello, In the last few days I executed some tests to understand a segmentation fault problem in my pcsdll library working with WineLib in RedHat 9. I created: - A little library pcsdll exporting a function that calls the TlsAlloc function - A little executable pcsmon that calls the exported library pcsdll function and creates a window Linking the library with the command g++ -m32 -march=pentium-mmx -mcpu=i686 -g -shared -Wl,-soname=pcsdll.so ......
I'm afraid you can't do this, you must use wineg++ not regular g++. The resulting library is only usable from Win32/Winelib applications.
when the pcsmon calls the library function the library obtains a segmentation fault in calling TlsAlloc function.
Yes, to use the Win32 API you must run it using Wine as a Winelib app or library. Anything else won't work. thanks -mike
participants (2)
-
Katia Maculan -
Mike Hearn