cni questions

Bryan Murphy dalroth@yahoo.com
Sat Apr 1 00:00:00 GMT 2000


I'm working on a CNI lib at the moment, and I'm having some difficulty
creating a class. Here is the code and below that is the error message
I get at compile time. I'm not quite sure what I'm missing.
#ifndef __CNI_BASE_H__
#define __CNI_BASE_H__
#include "cni.h"
#include "java/lang/Object.h"
namespace gnu {
 namespace cni {
 class base : public java::lang::Object
 {
 public:
 jint isOK() { return 1; }
 };
 }
}
#endif
>gcj System/cni_base.o main.java --main=main -o gtest -lgcj

System/cni_base.o: In function `gnu::cni::base type_info function':
System/cni_base.o(.gnu.linkonce.t.__tfQ33gnu3cni6base+0x10): undefined
reference to `java::lang::Object type_info function'
System/cni_base.o(.gnu.linkonce.t.__tfQ33gnu3cni6base+0x1a): undefined
reference to `java::lang::Object type_info node'
collect2: ld returned 1 exit status
make: *** [go] Error 1
Any ideas? Obviously I'm missing something, but I'm not sure what. 
Perhaps the constructor?
Thanks,
Bryan
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /