ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/09/07:45:24

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>
X-Trace: posting.google.com 1018352289 7482 (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


I'm trying to create a DLL with MinGW:

#include <stdio.h>
#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.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019