Olá pessoal.
Fiz experiências com xHarbour no Windows,via mingw enão obtive resultados positivos. Vejam:
C:\xharbour\bin>harbour - -m teste0001
xHarbour Compiler build 0.99.60 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'teste0001.prg'...
Lines 6, Functions/Procedures 2
Generating C source output to 'teste0001.c'...
Done.
Depois, compilando com GCC:
C:\xharbour\bin>gcc teste0001.c
teste0001.c:8:21: hbvmpub.h: No such file or directory
teste0001.c:9:21: hbpcode.h: No such file or directory
teste0001.c:10:20: hbinit.h: No such file or directory
teste0001.c:14: warning: parameter names (without types) in function declaration
teste0001.c:14: warning: data definition has no type or storage class
teste0001.c:15: warning: parameter names (without types) in function declaration
teste0001.c:15: warning: data definition has no type or storage class
teste0001.c:16: warning: parameter names (without types) in function declaration
teste0001.c:16: warning: data definition has no type or storage class
teste0001.c:17: warning: parameter names (without types) in function declaration
teste0001.c:17: warning: data definition has no type or storage class
teste0001.c:18: warning: parameter names (without types) in function declaration
teste0001.c:18: warning: data definition has no type or storage class
teste0001.c:19: warning: parameter names (without types) in function declaration
teste0001.c:19: warning: data definition has no type or storage class
teste0001.c: In function `HB_INIT_SYMBOLS_BEGIN':
teste0001.c:25: error: syntax error before '{' token
teste0001.c: At top level:
teste0001.c:47: error: syntax error before "HB_FUNC"
teste0001.c: In function `HB_FUNC':
teste0001.c:49: error: syntax error before "pcode"
teste0001.c: At top level:
teste0001.c:85: warning: parameter names (without types) in function declaration
teste0001.c:85: warning: data definition has no type or storage class
teste0001.c:86: error: syntax error before '}' token
Preparei um arquivo .bat prá configurar o ambiente, prá nada falhar:
SET PATH=.;C:\mingw\bin;C:\mingw\usr\bin;%PATH%
SET C_INCLUDE_PATH=C:\mingw\include;C:\mingw\usr\include;C:\xharbour\include
SET CPP_INCLUDE_PATH=C:\mingw\include\g++-3;C:\mingw\include
SET CPLUS_INCLUDE_PATH=C:\mingw\include\g++-3;C:\mingw\include
SET LIBRARY_PATH=C:\mingw\lib;C:\mingw\usr\lib
SET BISON_SIMPLE=C:\mingw\usr\share\bison.simple
SET BISON_HAIRY=C:\mingw\usr\share\bison.hairy
Set HBLIB=rtl.lib lang.lib vm.lib macro.lib pp.lib common.lib gtwin.lib rdd.lib
dbfcdx.lib dbfntx.lib
set HB_ARCHITECTURE=w32
set HB_COMPILER=mingw32
set HB_GT_LIB=gtwin
E trabalho com estes testes:
teste0001.prg:
function main
clear
@ 10,10 say "hello world"
return nil
teste0003.prg:
function main
clear screen
?"Hello, World!"
quit
return nil
Até mais.
Não consigo usar xHarbour + MinGW
Moderador: Moderadores
-
malevoloatwork
- Usuário Nível 1

- Mensagens: 4
- Registrado em: 11 Ago 2006 16:12
seu problema parece bem semelhante ao meu
https://pctoledo.org/forum/viewto ... c0881faa9e
stranho parece q é comum=/
https://pctoledo.org/forum/viewto ... c0881faa9e
stranho parece q é comum=/
-
malevoloatwork
- Usuário Nível 1

- Mensagens: 4
- Registrado em: 11 Ago 2006 16:12