Re: Building DLL's using g++, not gcc

2005-01-18 Thread David Marteau
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

Building DLL's using g++, not gcc

2005-01-17 Thread svoboda
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");} -