How to do linking?

Clemens Eisserer Linuxhippy@web.de
Wed May 8 14:17:00 GMT 2002


Hi!

I'm very sorry to waste your time with such really newbie questions, but I didnt find any docs about gcj, only that small papers on www.fsf.......

When I want to compile my .java-files to object-files (gcj -c hhh.java), everything works fine. If I compile it without an option that appers:

»Script« wurde gestartet: Fri Jan  7 23:59:48 2000
>]0;clemi@localhost.localdomain: /home/clemi/Java/Jine[clemi@localhost Jine]$ 
[clemi@localhost Jine]$ exit
[clemi@localhost Jine]$ gcj getdata.java
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.4/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.4/../../../crt1.o(.text+0x18): undefined reference to `main'
/tmp/ccgXMTGq.o: In function `getdata::finit__U24_()':
/home/clemi/Java/Jine/getdata.java(.text+0x5b): undefined reference to `dllObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x6e): undefined reference to `dllObj::dllObj()'
/home/clemi/Java/Jine/getdata.java(.text+0xa8): undefined reference to `dllObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0xbb): undefined reference to `dllObj::dllObj()'
/home/clemi/Java/Jine/getdata.java(.text+0xcd): undefined reference to `x11Obj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0xe0): undefined reference to `x11Obj::x11Obj()'
/home/clemi/Java/Jine/getdata.java(.text+0xf2): undefined reference to `fontObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x105): undefined reference to `fontObj::fontObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x117): undefined reference to `hwObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x12a): undefined reference to `hwObj::hwObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x13c): undefined reference to `afmdirsObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x14f): undefined reference to `afmdirsObj::afmdirsObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x161): undefined reference to `registryObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x174): undefined reference to `registryObj::registryObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x186): undefined reference to `layoutObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x199): undefined reference to `layoutObj::layoutObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x1ab): undefined reference to `clipboardObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x1be): undefined reference to `clipboardObj::clipboardObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x1d0): undefined reference to `winmmObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x1e3): undefined reference to `winmmObj::winmmObj()'
/home/clemi/Java/Jine/getdata.java(.text+0x1f5): undefined reference to `consoleObj::class$'
/home/clemi/Java/Jine/getdata.java(.text+0x208): undefined reference to `consoleObj::consoleObj()'
/tmp/ccgXMTGq.o: In function `getdata::thrconfig()':
/home/clemi/Java/Jine/getdata.java:30: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::thrafmdirsconfig()':
/home/clemi/Java/Jine/getdata.java:40: undefined reference to `afmdirsObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::thrdriveconfig()':
/home/clemi/Java/Jine/getdata.java:50: undefined reference to `driveObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::load_config()':
/home/clemi/Java/Jine/getdata.java:82: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:82: undefined reference to `lineObj::lineObj(java::lang::String*, int)'
/tmp/ccgXMTGq.o: In function `getdata::load_registry()':
/home/clemi/Java/Jine/getdata.java:93: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:93: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:98: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:106: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:115: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:124: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:133: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:142: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_layout()':
/home/clemi/Java/Jine/getdata.java:161: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:161: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:166: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:174: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::load_console()':
/home/clemi/Java/Jine/getdata.java:184: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:184: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:189: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:198: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:207: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:216: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:225: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:234: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_winmm()':
/home/clemi/Java/Jine/getdata.java:244: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:244: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:249: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:256: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:265: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:274: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::load_afmdirs()':
/home/clemi/Java/Jine/getdata.java:284: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:284: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:293: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:298: undefined reference to `afmdirsObj::class$'
/home/clemi/Java/Jine/getdata.java:298: undefined reference to `afmdirsObj::afmdirsObj()'
/tmp/ccgXMTGq.o: In function `getdata::load_clipboard()':
/home/clemi/Java/Jine/getdata.java:312: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:312: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:317: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:325: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:334: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o: In function `getdata::load_hw()':
/home/clemi/Java/Jine/getdata.java:344: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:344: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:349: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:357: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:366: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:375: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:384: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:393: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_x11()':
/home/clemi/Java/Jine/getdata.java:521: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:521: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:526: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:534: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:543: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:552: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:561: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:570: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_fonts()':
/home/clemi/Java/Jine/getdata.java:672: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:672: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:677: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:685: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:694: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:703: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:712: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:721: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_pathdlls()':
/home/clemi/Java/Jine/getdata.java:732: undefined reference to `parser::class$'
/home/clemi/Java/Jine/getdata.java:732: undefined reference to `parser::parser()'
/home/clemi/Java/Jine/getdata.java:737: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:745: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:754: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:763: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:772: undefined reference to `lineObj::class$'
/tmp/ccgXMTGq.o:/home/clemi/Java/Jine/getdata.java:781: more undefined references to `lineObj::class$' follow
/tmp/ccgXMTGq.o: In function `getdata::load_drives()':
/home/clemi/Java/Jine/getdata.java:1198: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1198: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1207: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1207: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1213: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1213: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1221: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1221: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1237: undefined reference to `lineObj::class$'
/home/clemi/Java/Jine/getdata.java:1244: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1244: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1252: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1252: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1258: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1258: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/home/clemi/Java/Jine/getdata.java:1266: undefined reference to `driveObj::class$'
/home/clemi/Java/Jine/getdata.java:1266: undefined reference to `driveObj::driveObj(java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*, java::lang::String*)'
/tmp/ccgXMTGq.o: In function `getdata::finit__U24_()':
/home/clemi/Java/Jine/getdata.java(.data+0x34): undefined reference to `dllObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0x54): undefined reference to `dllObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0x64): undefined reference to `x11Obj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0x74): undefined reference to `fontObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0x84): undefined reference to `hwObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0x94): undefined reference to `afmdirsObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0xa4): undefined reference to `registryObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0xb4): undefined reference to `layoutObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0xc4): undefined reference to `clipboardObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0xd4): undefined reference to `winmmObj::class$'
/home/clemi/Java/Jine/getdata.java(.data+0xe4): undefined reference to `consoleObj::class$'
collect2: ld returned 1 exit status
]0;clemi@localhost.localdomain: /home/clemi/Java/Jine[clemi@localhost Jine]$ 
[clemi@localhost Jine]$ e
[clemi@localhost Jine]$ ex
[clemi@localhost Jine]$ exi
[clemi@localhost Jine]$ exit
»Script« beendet: Fri Jan  7 23:59:52 2000

What does that mean, and where are some docus, so that I dont need to waste your time...

Thx Clemens

But how can I make hole programms. 
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13




More information about the Java mailing list