But I am making dll the same way I am creating on Windows using Cygwin. And the DLL is getting created in Mac also. How can it be possible?
On browing the net using google, I found "dylib" is an alternative of DLL on Mac. instead of using .a or .so, can i use "dylib" files.
Yes you can use dylib's.
You may want to rethink your approach though. Having dynamically linked libraries aside from the system frameworks can lead to bugs. Plus Mac users don't expect installers. Honestly I don't trust them. I love being able to open a dmg and drag the app to install it. Then drag it away and know that its gone.
Hi there,
the dynamic library that is created (libaddnum.dylib), will it work on MAC OS or it is for cygwin on windows only?
No. Windows, OS X, and Linux have completely different native executable and object formats (PE, Mach-O, and ELF respectively). You can't move libraries across systems without (at least) a recompile any more than you can move whole programs.
Can I compile the whole program on
Windows and runs on MAC OS