RE: Linking VC++ DLL

2003-03-24 Thread Hannu E K Nevalainen (garbage mail)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf --8<-- > extern "C" __declspec(dllexport) int hello() > { > printf("Hello World!\n"); > return 345; > } --8<-- > int main() > { > printf("What is this? %d\n", hello()); > } > > All I get in return is (under Cygwin): > Wh

Linking VC++ DLL

2003-03-24 Thread Sim Joon
Hi, I have already compiled and linked the following function extern "C" __declspec(dllexport) int hello() { printf("Hello World!\n"); return 345; } in a VC++ DLL. I have also successfully linked and created the import library in Cygwin, libhallo.a However, when I compile and r