linking with non-cygwin dll

2003-07-30 Thread vikramshrowty
Hi, I had posted a query earlier about a cygwin program linking with a non-cygwin dll. Based on the very helpful responses and some googling around, I learnt that this is possible. But... heres a main.c that links with cygwin1.dll int main(void) { printf("CYGWIN\n"); test_dll(); ret

Re: linking with non-cygwin dll

2003-07-30 Thread vikramshrowty
You need this for linking with third-party dlls that dont have a cygwin version. I was looking through some documentation for the MKS toolkit (it's like a commercial alternative to cygwin) and according to it, a program that uses the MKS c-library can link with dlls that are in turn linked to msvc

Re: linking with non-cygwin dll

2003-07-30 Thread vikramshrowty
Perfect. Thanks a lot. On Wed, 30 Jul 2003, Igor Pechtchanski wrote: > Vikram, > > Replies inline below. > > On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: > > > You need this for linking with third-party dlls that dont have a > > cygwin version. > > Yes, you do. The suggestion of omitting m

cygwin performance hit

2003-08-02 Thread vikramshrowty
Hi, Im seeing a severe perfomance hit from cygwin. Heres the result of $time make_depend with a cygwin-compiled makedepend: 2.65user 27.90system 9:22.59elapsed 5%CPU (0avgtext+0avgdata 49856maxresident)k 0inputs+0

undefined symbols in dlls?

2004-01-22 Thread vikramshrowty
Hi, Aren't dlls alowed to have undefined symbols? -- foo.c: int bar(); int foo() { return bar(); } -- When I try to compile foo.c like this... gcc -shared -o foo.dll foo.c I get an error message complaning that '_bar' is undefined. Thanks, --Vikram -- Unsu