Re: Callbacks from shared libraries compiled with cygwin

2005-09-14 Thread Michael Spicar
Brian Dessent wrote: Michael Spicar wrote: So I have two questions: 1) Is it possible at all to have callbacks like this? 2) If yes, must I have the import/export-lists? Yes, it's possible, but it's not considered great design. You have to use __declspec(export) on the symbols in the mai

Re: Callbacks from shared libraries compiled with cygwin

2005-09-08 Thread Brian Dessent
Michael Spicar wrote: > So I have two questions: > 1) Is it possible at all to have callbacks like this? > 2) If yes, must I have the import/export-lists? Yes, it's possible, but it's not considered great design. You have to use __declspec(export) on the symbols in the main .exe, and then produc

Callbacks from shared libraries compiled with cygwin

2005-09-08 Thread Michael Spicar
Hi! I use cygwin 1.5.17/(0.129/4/2) on a vmware installation on a linux computer. I have a small test application that consist of a main program and a shared library (dll) that is loaded by the main program with dlopen at RUNTIME. All is compiled with gcc and plain C-code. I have a global