Hi,
The way symbol names are built in dll differs if they are related to c
call convention or to c++ call, and that could be your problem. When
compiling hello.c with gcc, your exported symbol corresponds to C
calling convention.
When compiling dll with g++, you should declare your exported fu
I've been trying to build a DLL using g++, and given the problems I was
having, I decided to try a 'toy' example, which is available at:
http://cygwin.com/cygwin-ug-net/dll.html
I tweaked the two files around thusly:
hello.C:
-
#include
int hello() { printf("Hello World\n");}
-
2 matches
Mail list logo