Página 1 de 1

xhabour + bcc55 == errooos

Enviado: 31 Jan 2007 19:03
por okazo01
//fonte
FUNCTION Main()
@ 10,10 SAY "Helooo"
RETURN NIL

// script -> peguei na net
@echo off
cls

echo Compilando...

C:\xHarbour\bin\harbour %1 /m /n
C:\bcc55\bin\bcc32 -M -c -v -O2 -e%1.exe -IC:\xHarbour\include %1.c

echo c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo C:\xHarbour\lib\rtl.lib + >> b32.bc
echo C:\xHarbour\lib\gtwin.lib + >> b32.bc
echo C:\xHarbour\lib\lang.lib + >> b32.bc
echo C:\xHarbour\lib\macro.lib + >> b32.bc
echo C:\xHarbour\lib\rdd.lib + >> b32.bc
echo C:\xHarbour\lib\dbfntx.lib + >> b32.bc
echo C:\xHarbour\lib\dbfcdx.lib + >> b32.bc
echo C:\xHarbour\lib\dbffpt.lib + >> b32.bc
echo C:\xHarbour\lib\debug.lib + >> b32.bc
echo C:\xHarbour\lib\common.lib + >> b32.bc
echo C:\xHarbour\lib\pp.lib + >> b32.bc
echo C:\xHarbour\lib\hbsix.lib + >> b32.bc
echo C:\xHarbour\lib\pcrepos.lib + >> b32.bc

echo C:\bcc55\lib\cw32.lib + >> b32.bc
echo C:\bcc55\lib\import32.lib + >> b32.bc
echo C:\bcc55\lib\psdk\odbc32.lib + >> b32.bc
echo C:\bcc55\lib\psdk\rasapi32.lib, >> b32.bc

C:\bcc55\bin\ilink32 @b32.bc

echo OK



// quando compila
Compilando...
xHarbour Compiler build 0.99.70 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'a.prg'...

Lines 4, Functions/Procedures 1
Generating C source output to 'a.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
a.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_retni' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_parni' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_errRT_New_Subst' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_dynsymGet' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_vmPushSymbol' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_vmPush' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_vmDo' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_errLaunchSubst' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_vmRequestQuit' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemPutNI' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemPutC' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemPutND' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemPutNDLen' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemPutL' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_arrayNew' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_arraySetForward' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemDo' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemGetL' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_arrayGet' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemGetND' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemGetNLen' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemGetNI' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemClear' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_ret' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemReturn' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_pcount' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemNew' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemCopy' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_itemRelease' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_param' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_parnd' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_retndlen' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_retnd' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_paramError' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external '_hb_errRT_BASE_SubstR' referenced from C:\XHARBOUR\LIB\RTL.LIB|math
Error: Unresolved external 'WinMain' referenced from C:\BCC55\LIB\C0W32.OBJ
Error: Unresolved external '_hb_vmProcessSymbols' referenced from C:\TESTE\PRGS\A.OBJ
Error: Unresolved external '_hb_cmdargNum' referenced from C:\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_b_MouseEnable' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_xgrab' referenced from C:\XHARBOUR\LIB\COMMON.LIB|hbgete
Error: Unresolved external '_hb_errInternal' referenced from C:\XHARBOUR\LIB\GTWIN.LIB|gtwin
Error: Unresolved external '_hb_xfree' referenced from C:\XHARBOUR\LIB\GTWIN.LIB|gtwin
Error: Unresolved external '_hb_xquery' referenced from C:\XHARBOUR\LIB\COMMON.LIB|hbver
Error: Unresolved external '_hb_xrealloc' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_parl' referenced from C:\XHARBOUR\LIB\RTL.LIB|fssize
Error: Unresolved external '_hb_parcx' referenced from C:\XHARBOUR\LIB\RTL.LIB|fssize
Error: Unresolved external '_hb_retnl' referenced from C:\XHARBOUR\LIB\RTL.LIB|fssize
Error: Unresolved external '_hb_retl' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_retclen' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_parclen' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_retc' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_arrayAddForward' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_itemReturnForward' referenced from C:\XHARBOUR\LIB\RTL.LIB|tprinter
Error: Unresolved external '_hb_parc' referenced from C:\XHARBOUR\LIB\RTL.LIB|fstemp
Error: Unresolved external '_hb_storc' referenced from C:\XHARBOUR\LIB\RTL.LIB|fstemp
Error: Unresolved external '_hb_errRT_TERM' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_retcAdopt' referenced from C:\XHARBOUR\LIB\RTL.LIB|langapi
Error: Unresolved external '_hb_parnl' referenced from C:\XHARBOUR\LIB\RTL.LIB|langapi
Error: Unresolved external '_hb_errRT_BASE' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_reta' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_storl' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_dynsymFind' referenced from C:\XHARBOUR\LIB\RTL.LIB|set
Error: Unresolved external '_hb_vmRequestCancel' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_vmRequestDebug' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_vmRequestQuery' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_gcCollectAll' referenced from C:\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_retptr' referenced from C:\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_parinfo' referenced from C:\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_parptr' referenced from C:\XHARBOUR\LIB\RTL.LIB|idle
Error: Unresolved external '_hb_vmEvalBlock' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_vmEvalBlockV' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_itemGetCLen' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_itemGetC' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_arrayLen' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_arrayGetItemPtr' referenced from C:\XHARBOUR\LIB\RTL.LIB|inkey
Error: Unresolved external '_hb_errPutFileName' referenced from C:\XHARBOUR\LIB\RTL.LIB|filesys
Error: Unresolved external '_hb_errPutOsCode' referenced from C:\XHARBOUR\LIB\RTL.LIB|filesys
Error: Unresolved external '_hb_errPutGenCode' referenced from C:\XHARBOUR\LIB\RTL.LIB|filesys
Error: Unresolved external '_hb_retclenAdopt' referenced from C:\XHARBOUR\LIB\RTL.LIB|strcase
Error: Unresolved external '_hb_cmdargCheck' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_arraySet' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_itemArrayNew' referenced from C:\XHARBOUR\LIB\RTL.LIB|setkey
Error: Unresolved external '_hb_arrayGetNI' referenced from C:\XHARBOUR\LIB\RTL.LIB|setkey
Error: Unresolved external '_hb_itemString' referenced from C:\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_vmExecute' referenced from C:\TESTE\PRGS\A.OBJ
OK

Alguem pode me ajudar.??
eu pesquisei mas nao achei nada q me ajudasse

Enviado: 01 Fev 2007 15:44
por Stanis Luksys
Olá,

Existem varios modos de compilar sem ser por arquivo bat.

Eu recomendo o hbmake, utilize assim, no dos:

hbmake -ex teste.bc

Preencha os campos necessários e só.

Outras pessoas podem te informar outrpos métodos.

Valeu!

Enviado: 01 Fev 2007 16:04
por okazo01
obrigado pela ajuda

mas kero pedir mais uma coisa

olha soh cara eu tentei com o hbmake
soh q diz q
hbmake necessita do hbarbour bin no path

dae ele escreve o path no console
PATH=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;C:\Arquivos de programas\Borland\BDS\4.0\Bin;C:\Arquivos de programas\Borland\Delphi7\Bin;C:\Arquivos de programas\Borland\Delphi7\Projects\Bpl\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Arquivos comuns\Autodesk Shared\;C:\ARQUIV~1\ARQUIV~1\AUTODE~1\GIS\IMPORT~1\1.0;C:\MSSQL7\BINN;C:\Arquivos de programas\QuickTime\QTSystem\;C:\Program Files\Borland\CaliberRM SDK 2005 R2\lib;C:\Arquivos de programas\Arquivos comuns\Teleca Shared;C:\Harbour;C:\BCC55;C:\Harbour\bin;C:\BCC55\bin;C:\Documents and Settings\Administrador\Meus documentos\Borland Studio Projects\Bpl;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;C:\Arquivos de programas\Borland\BDS\4.0\Bin;C:\Arquivos de programas\Borland\Delphi7\Bin;C:\Arquivos de programas\Borland\Delphi7\Projects\Bpl\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Arquivos comuns\Autodesk Shared\;C:\ARQUIV~1\ARQUIV~1\AUTODE~1\GIS\IMPORT~1\1.0;C:\MSSQL7\BINN;C:\Arquivos de programas\QuickTime\QTSystem\;C:\Program Files\Borland\CaliberRM SDK 2005 R2\lib;C:\Arquivos de programas\Arquivos comuns\Teleca Shared;C:\Harbour;C:\BCC55;C:\BCC55\BIN;C:\xHarbour\BIN

soh q se vc observar tem ali os diretorios q me disseram para por

se puder me ajuda

Enviado: 01 Fev 2007 16:14
por Stanis Luksys
Hehehe,

Cara, não sei se tem limite, mas vou te dizer uma coisa, nunca vi tanta coisa de uma vez só no path do Windows... haha

Com certeza tem coisas alí desnecessárias, exemplo: c:\bcc , c:\harbour... Não ha nada dentro destas pastas, somente subpastas, então não servem de nada no path...

No mais, parece estar certo, quando vc entra no dos e digita harbour, o que aparece, o harbour ou o xharbour? Se for o harbour é este o problema...

Falou...

Enviado: 01 Fev 2007 17:47
por okazo01
cara
tanto digitando harbour ou xhabour, nao acontece nada
diz q nao eh reconhecido como comando interno.....

e akeles erros ali eh qdo digito

c:\xhabour\bin\hbmake -ex a.bc

eu nem sei mais o q fazer...:(
Triste

obrigado pela atencao ateh agora

Enviado: 01 Fev 2007 17:55
por Stanis Luksys
Olá,

Deeve ser de tanta coisa que tem no PATH, ou então falta algum ponto-e-virgula, sei lá...

Tenta escrevendo assim no dos:

set path=%PATH%;c:\xharbour\bin

E depois execute o hbmake, se não funcionar, ou o xHarbour não está neste caminho ou o seu Windows ta bixado...

Falou...

Enviado: 02 Fev 2007 09:53
por okazo01
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
consegui cara

mais duvidas.....

como q eu acesso um dbf no windows...
tipo no linux eh dbu nomedbf.dbf

deve ter que baixar alguma coisa oq eh.

abraco.

Enviado: 05 Fev 2007 23:12
por vagucs
Compile o DBU em xHarbour.