Javier ArgentinaBBAR
unread,Aug 6, 2020, 6:31:56 PM8/6/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to harbou...@googlegroups.com
Buenas tardes.
Soy muy nuevo en Harbour, pero muy viejo en Clipper 5.x y Linux.
Estoy queriendo compilar un programa básico.
Funciona bien bajo Windows, pero me estoy rompiendo la cabeza en linux.
El programa es el básico:
===========
PROCEDURE Main()
? "¡Hola, mundo!"
RETURN
===========
El cual me da esta serie de errores, como si el programa en C++
estuviese mal definido. Lo cual es imposible, pues lo arma Harbour.
Si alguien me puede guiar.
Mis instrucciones de compilación son:
$ harbour hm.prg -n -q0 -es2 -gc0 -I/usr/include/harbour
$ gcc hm.c -L/usr/lib/harbour -I/usr/include/harbour
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o:
en la función `_start':
(.text+0x20): referencia a `main' sin definir
/usr/bin/ld: /tmp/ccCczdUd.o: en la función `hb_vm_SymbolInit_HM':
hm.c:(.text+0x23): referencia a `hb_vmProcessSymbols' sin definir
/usr/bin/ld: /tmp/ccCczdUd.o: en la función `HB_FUN_MAIN':
hm.c:(.text+0x47): referencia a `hb_vmExecute' sin definir
/usr/bin/ld: /tmp/ccCczdUd.o:(.data.rel+0x30): referencia a
`HB_FUN_QOUT' sin definir
collect2: error: ld returned 1 exit status
Gracias
JAP
=========================================================================
Good afternoon.
I am very new to Harbor, but very old to Clipper 5.x and Linux.
I want to compile a basic program.
It works fine under Windows, but I'm breaking my head on linux.
The program is basic:
===========
PROCEDURE Main()
? "Hello World!"
RETURN
===========
Which gives me this series of errors, as if the C ++ program was
poorly defined. Which is impossible, because it is built by Harbor.
If anyone can guide me.
My build instructions are:
$ harbor hm.prg -n -q0 -es2 -gc0 -I / usr / include / harbor
$ gcc hm.c -L / usr / lib / harbor -I / usr / include / harbor
/ usr / bin / ld:
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in
the `_start 'function:
(.text + 0x20): reference to undefined `main '
/ usr / bin / ld: /tmp/ccCczdUd.o: in the `hb_vm_SymbolInit_HM 'function:
hm.c :(. text + 0x23): reference to `hb_vmProcessSymbols' undefined
/ usr / bin / ld: /tmp/ccCczdUd.o: in the `HB_FUN_MAIN 'function:
hm.c :(. text + 0x47): reference to `hb_vmExecute 'undefined
/ usr / bin / ld: /tmp/ccCczdUd.o:(.data.rel+0x30): reference to
undefined `HB_FUN_QOUT '
collect2: error: ld returned 1 exit status
Thanks
JAP