X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: francescomoi AT europe DOT com (Francesco Moi) Newsgroups: comp.os.msdos.djgpp Subject: `cout' undeclared (first use this function) Date: 9 Apr 2002 04:38:09 -0700 Organization: http://groups.google.com/ Lines: 18 Message-ID: <5b829932.0204090338.738e47a0@posting.google.com> NNTP-Posting-Host: 194.30.71.149 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1018352289 7482 127.0.0.1 (9 Apr 2002 11:38:09 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 9 Apr 2002 11:38:09 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. I'm trying to create a DLL with MinGW: #include #include "HelloWorld.h" // this header file was generated by javah JNIEXPORT void JNICALL Java_HelloWorld_displayMessage(JNIEnv *env, jobject obj) { cout << "Hello World! "; } But I get this error message: HelloWorld.cpp:5: `cout' undeclared (first use this function) HelloWorld.cpp:5: (Each undeclared identifier is reported only once HelloWorld.cpp:5: for each function it appears in.) What am I doing wrong? Thank you.