This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cni questions


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]