Re: help with gcj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Salatiel Filho wrote:
hey , i am kinda new in compile java class to native , but i am trying
to compile a little test and i am getting


# gcj --version
gcj (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.




# gcj --classpath .:lib/JNetStreamStandalone.jar  --main=Test  Test.java

You also will need to compile the jar file.

You could try something like this:

gcj --main=Test -o Test lib/JNetStreamStandalone.jar Test.java

David Daney


/tmp/cccYTsrJ.o: In function `void Test::printaTudo()':
Test.java:(.text+0x254): undefined reference to `Conversation::class$'
/tmp/cccYTsrJ.o: In function `bool
Test::isNewOutgoing(com::voytechs::jnetstream::codec::Packet*)':
Test.java:(.text+0x405): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
/tmp/cccYTsrJ.o: In function `bool
Test::isNewIncoming(com::voytechs::jnetstream::codec::Packet*)':
Test.java: (.text+0x46b): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
/tmp/cccYTsrJ.o: In function `void
Test::parsePacket(com::voytechs::jnetstream::codec::Packet*)':
Test.java:(.text+0x4c2): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x4f0): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x529): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java: (.text+0x54e): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0x57e): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java:(.text+0x5dd): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x602): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0x632): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
/tmp/cccYTsrJ.o: In function `void
Test::parseMsg(com::voytechs::jnetstream::codec::Packet*)':
Test.java:(.text+0x6f1): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x75b): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java: (.text+0x780): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0x7b0): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java:(.text+0x815): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x83a): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0x86a): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java: (.text+0x8a4): undefined reference to `Conversation::class$'
Test.java:(.text+0x9db): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0xa00): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0xa30): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java:(.text+0xb15): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java: (.text+0xb3a): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0xb6a): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java:(.text+0xbe5): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0xc0a): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0xc3a): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java: (.text+0xc74): undefined reference to `Conversation::class$'
/tmp/cccYTsrJ.o: In function `void
Test::addNewIncoming(com::voytechs::jnetstream::codec::Packet*)':
Test.java:(.text+0xd84): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0xda9): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0xdd9): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java: (.text+0xf3c): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0xfd8): undefined reference to `Conversation::class$'
Test.java:(.text+0xfee): undefined reference to
`Conversation::Conversation(java::lang::String*)'
/tmp/cccYTsrJ.o: In function `void
Test::addNewOutgoing(com::voytechs::jnetstream::codec::Packet*)':
Test.java:(.text+0x1106): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java: (.text+0x112b): undefined reference to
`com::voytechs::jnetstream::codec::Header::class$'
Test.java:(.text+0x115b): undefined reference to
`com::voytechs::jnetstream::codec::Field::class$'
Test.java:(.text+0x1287): undefined reference to
`com::voytechs::jnetstream::codec::Packet::class$'
Test.java:(.text+0x12f9): undefined reference to `Conversation::class$'
Test.java:(.text+0x130f): undefined reference to
`Conversation::Conversation(java::lang::String*)'
/tmp/cccYTsrJ.o: In function `void Test::main(JArray<java::lang::String*>*)':
Test.java:(.text+0x151b): undefined reference to
`com::voytechs::jnetstream::io::RawformatInputStream::class$'
Test.java:(.text+0x153b): undefined reference to
`com::voytechs::jnetstream::io::RawformatInputStream::RawformatInputStream(java::io::InputStream*)'
Test.java:(.text+0x154b): undefined reference to
`com::voytechs::jnetstream::io::QueuePacketInputStream::class$'
Test.java:(.text+0x1564): undefined reference to
`com::voytechs::jnetstream::io::QueuePacketInputStream::QueuePacketInputStream()'
Test.java:(.text+0x1574): undefined reference to
`com::voytechs::jnetstream::codec::Decoder::class$'
Test.java:(.text+0x1594): undefined reference to
`com::voytechs::jnetstream::codec::Decoder::Decoder(com::voytechs::jnetstream::io::PacketInputStream*)'
collect2: ld returned 1 exit status



Any help ?
[]s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux