I am creating a shared library Client.dll using Cygwin g++ compiler and calling through a JAVA program.
Everything is working fine if I remove 'cout <<' command from Client.c program. The method returns the value. But when I add cout command the JVM freezes.
A DLL is not guaranteed to have a console when run, and even if it does, maybe the variable cout is not properly linked for starters. Is this Java program of yours providing a console?