Página 1 de 1

nao consigo compilar

Enviado: 26 Abr 2008 21:26
por marbio
Boa noite,

fiz a instalacao conforme orientacao

na hora de compiar da este erro aqui.

'upx' não é reconhecido com um command interno
ou externo, um programa operável ou arquivo em lotes.land

ja baixei tudo de novo para ver se era problema de download.
re fiz tudo mas nao deu certo da dando este erro.

nao sei o aque fazer ...
mais

ha, o meu prg so tem 2 linha
para teste...

function main()
? "ola"

Enviado: 26 Abr 2008 21:32
por sygecom
o UPX só serve para compactar o .EXE e vc encontra ele no link abaixo:
http://upx.sourceforge.net/

Basta colocar o UPX.EXE no seu PATH, ou usando o hbmake desmarque a opção de comprimir EXE.

Abraços
Leonardo Machado

Enviado: 26 Abr 2008 22:06
por marbio
Ola,

Muito obrigado, deu certo, mas outra duvida.
quando eu rodo exe, ele nao aparece nada na tela
tipo nao tivesse nada.

t+

Enviado: 26 Abr 2008 23:41
por sygecom
Se vc esta se referindo ao seu exemplo de duas linhas, isso deve ser pq o mesmo esta rodando muito rapido e vc não esta vendo, tente colocar um "INKEY(0)"

to com problema ainda...

Enviado: 27 Abr 2008 15:54
por marbio
Ola,

nao deu certo, mas eu tava reparando uma coisa,

quando vai marcando as opcaoes, quando chega no prg ele da uma
msg.

menhum prg foi encontrado enter

nenhum prg foi selecionado enter

eu acho e por isso que nao aparece nada.

mas tem um prg la com o nome de

menu.prg


desde ja agradeco sua atencao!!


fico no agardo

Enviado: 27 Abr 2008 16:59
por sygecom
Se vc esta usando o hbmake para compilar, basa quando chegar na lista de .PRG vc marque o .PRG usando a "BARRA DE ESPAÇO" e a mesma coisa caso vc use LIB EXTERNAS.

Enviado: 27 Abr 2008 18:25
por marbio
Ola,

Entao este que é o problema,

nao aparece para eu fazer a escolha do prg. nao abre a tela para eu marcar!
eles.


t+

Enviado: 28 Abr 2008 05:48
por sygecom
vc esta usando o hbmake ? se estiver basta chamar o hbmake de dentro da pasta onde esta seus .PRG

Enviado: 28 Abr 2008 13:41
por MARCELOG
Olá amiguinho,
mas se existir apenas o prg na pasta onde você chamou o hbmake a tela não vai abrir, pois a vinculação é automática.

MarceloG

duvidas ainda..

Enviado: 29 Abr 2008 19:27
por marbio
Boa Noite,

Porq deu estes erros no meu arquivo? Se fosse no clipper nao dava!

tenho, 44 prgs

coloquei a function mani() no menu principal

Código: Selecionar todos


xHarbour Compiler build 0.99.70 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'MENU.PRG'...

 100
 200
 300
 500
 600
 700
 800
 900
 1000
 1100
 1200
 1300
 1400
 1500
 1600
Lines 1676, Functions/Procedures 52
Generating C source output to 'obj\MENU.c'...
Done.

Building object module for 'obj\MENU.c'
using C compiler 'BCC32' as defined in 'C:\XHARBOUR\BIN\harbour.cfg'...
Exec: BCC32  -c -D__EXPORT__ -IC:\XHARBOUR\include  -d -LC:\XHARBOUR\lib -oobj\MENU.obj obj\MENU.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\MENU.c:
Done.
Deleting: "obj\MENU.c"
Done.
xHarbour Compiler build 0.99.70 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'CABECA.PRG'...

Lines 14, Functions/Procedures 1
Generating C source output to 'obj\CABECA.c'...
Done.

Building object module for 'obj\CABECA.c'
using C compiler 'BCC32' as defined in 'C:\XHARBOUR\BIN\harbour.cfg'...
Exec: BCC32  -c -D__EXPORT__ -IC:\XHARBOUR\include  -d -LC:\XHARBOUR\lib -oobj\CABECA.obj obj\CABECA.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\CABECA.c:
Done.
Deleting: "obj\CABECA.c"
Done.
xHarbour Compiler build 0.99.70 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'CADGRUPO.PRG'...

CADGRUPO.PRG(5) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(6) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(7) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(9) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(11) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(12) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(13) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(14) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(15) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(16) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(17) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(18) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(19) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(20) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(21) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(22) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(23) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(24) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(25) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(27) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(28) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(29) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(31) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(33) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(34) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(35) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(36) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(40) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(41) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(42) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(43) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(44) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(45) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(46) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(47) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(48) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(49) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(50) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(51) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(53) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(54) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(55) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(57) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(58) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(59) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(60) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(62) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(63) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(65) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(67) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(69) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(70) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(73) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(74) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(75) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(76) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(77) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(78) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(79) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(80) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(81) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(82) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(83) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(84) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(85) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(87) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(90) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(105) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(106) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(107) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(108) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(109) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(111) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(125) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(127) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(128) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(130) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(131) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(133) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(134) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(135) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(136) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(137) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(139) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(140) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(141) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(143) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(144) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(145) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(147) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(149) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(150) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(152) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(153) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(154) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(155) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(157) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(158) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(159) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(160) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(162) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(163) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(164) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(167) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(168) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(170) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(171) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(175) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(176) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(177) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(178) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(180) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(184) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(185) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(186) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(187) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(189) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(190) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(191) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(192) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(193) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(194) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(195) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(196) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(198) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(200) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(202) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(203) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(204) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(207) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(208) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(209) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(210) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(213) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(217) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(218) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(219) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(220) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(222) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(223) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(224) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(225) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(226) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(227) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(228) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(229) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(231) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(233) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(235) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(237) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(238) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(239) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(240) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(242) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(244) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(245) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(246) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(248) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(249) Error E0001  Statement not allowed outside of procedure or function

CADGRUPO.PRG(251) Error E0001  Statement not allowed outside of procedure or function

160 errors

No code generated

Dese ja agradeco a ajuda.

t+

Enviado: 30 Abr 2008 09:00
por sygecom
Olá Marbio,
Porq deu estes erros no meu arquivo? Se fosse no clipper nao dava!
Clipper não é xharbour e xharbour não é clipper, apenas tem quase que 100% de compatibilidade.
Sobre os erros, bem provavel que o "CADGRUPO.PRG" esta iniciando sem um FUNCTION ou PROCEDURE. Tente colocar o nome de Function em todos os .PRG que inicia sem FUNCTION ou PROCEDURE.
coloquei a function mani() no menu principal
o Correto é "Function Main()'


Abraços
Leonardo Machado

Enviado: 30 Abr 2008 09:50
por gvc
Marbio, vc postou que não estava conseguindo compilar o programa com 2 linhas. (veja o código abaixo)
Depois vc postou que esta dando erro de não encontrar o programa (nenhum prg selecionado)
Depois disso vc postou que são 44 prg´s.

Vamos por partes.
Vc conseguiu compilar e executar o programa de 2 linhas?
Vc esta compilando um sistema (vários prg´s)?
Se sim, conseguiu compilar o sistema agora?
Desculpe, mas eu fiquei bem perdido nessa.

Código: Selecionar todos

function main()
? "ola"
return(Nil)

Enviado: 30 Abr 2008 21:03
por marbio
Ola, a todos que esta me ajudando...

Vc conseguiu compilar e executar o programa de 2 linhas?
sim! so foi um teste


Vc esta compilando um sistema (vários prg´s)?
sao vairos prgs,

Se sim, conseguiu compilar o sistema agora?
não, estou mudando, mas ainda estou meio confuso!


duvida.

quando falamos de procedure ou function, temos colocar o mesmo nome do prg

ex:
tela.prg
procedure tela

bla,bla

desde ja agradeco sua atencao...

t+

marbio.

Re: nao consigo compilar

Enviado: 02 Mai 2008 22:12
por sygecom
Olá Marbio,
não, estou mudando, mas ainda estou meio confuso!
Se estiver com duvidas, poste as duvidas e vamos resolvendo tudo por aqui, fique a vontade.
duvida.
quando falamos de procedure ou function, temos colocar o mesmo nome do prg

ex:
tela.prg
procedure tela
Isso não é obrigatorio, mas pode ser usado sem problemas, a unica exigencia é um .prg não deve iniciar sem um nome de function ou procedure, como era usado no clipper. Apesar de eu já ouvir comentarios que isso tmb. funciona com o xharbour, mas particular metente quando pego sistemas em clipper que vou migrar para xHarbour, eu tem .PRG com apenas uma unica rotina sem nomes de function ou procedure, ou coloco o nome da function com o mesmo nome do .PRG.

Qualquer duvida , prende o grito...

Abraços
Leonardo Machado

Re: nao consigo compilar

Enviado: 06 Mai 2008 11:31
por gvc
[Marbio]
Vc conseguiu compilar sua aplicação?