This is the mail archive of the
mailing list for the Cygwin project.
linking with non-cygwin dll
- From: vikramshrowty at yahoo dot com
- To: cygwin at cygwin dot com
- Date: Wed, 30 Jul 2003 17:38:45 -0700 (PDT)
- Subject: linking with non-cygwin dll
- Reply-to: vikramshrowty at fastmail dot fm
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
where test_dll is in a dll compiled with -mno-cygwin and is defined
__declspec(dllexport) __stdcall void test_dll(void)
This works perfectly. But, notice the fflush. If this is removed,
"MSFT" doesnt get printf'ed. I assuming that this is because the
stdout buffer in the microsoft c-library isnt getting flushed
automatically at program exit.
Any ideas on why?? ..and how to remedy this??
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html