Página 1 de 1

ajuda compilar

Enviado: 07 Jun 2008 09:57
por filizola
xHarbour Compiler build 0.99.70 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'ALO.PRG'...

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

Building object module for 'obj\ALO.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\ALO.obj obj\ALO.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\ALO.c:
Error E2209 c:\xharbour\include\hbdefs.h 58: Unable to open include file 'stdarg.h'
Error E2209 c:\xharbour\include\hbdefs.h 59: Unable to open include file 'stdio.h'
Error E2209 c:\xharbour\include\hbdefs.h 60: Unable to open include file 'stdlib.h'
Error E2209 c:\xharbour\include\hbdefs.h 61: Unable to open include file 'string.h'
Error E2209 c:\xharbour\include\hbsetup.h 61: Unable to open include file 'limits.h'
Error E2188 c:\xharbour\include\hbdefs.h 411: Expression syntax
Error E2257 c:\xharbour\include\hbdefs.h 436: , expected
Error E2139 c:\xharbour\include\hbvmpub.h 227: Declaration missing ;
Error E2451 obj\ALO.c 23: Undefined symbol 'NULL'
Error E2141 obj\ALO.c 23: Declaration syntax error
Error E2190 obj\ALO.c 23: Unexpected }
Error E2190 obj\ALO.c 23: Unexpected }
Error E2040 obj\ALO.c 23: Declaration terminated incorrectly
Error E2190 obj\ALO.c 28: Unexpected }
Error E2190 obj\ALO.c 28: Unexpected }
Error E2109 obj\ALO.c 28: Not an allowed type in function hb_vm_SymbolInit_ALO
*** 16 errors in Compile ***
Done.
Deleting: "obj\ALO.c"
Done.

Re: ajuda compilar

Enviado: 07 Jun 2008 16:54
por sygecom
Olá Filizola,
A principio deve esta faltando algum caminho do BCC no se PATH, ou seu "bcc32.cfg" e "ILINK32.CFG" esta apontando para caminhos errados.
Post seu bcc32.cfg e ILINK32.CFG, os dois se encontram dentro da pasta "\bcc55\bin".
Opcionalmente, se você quiser pode baixar um instalador que Eu e o Rodrigo Moreno fizemos para facilitar essa etapa de configuração de ambiente e instalação de xharbour e bcc, com ele isso tudo sai configurado e usando a versão mais recente do xharbour estavel a 1.0.0.
Clique aqui para baixar.

Qualquer duvida posta aqui !

Abraços
Leonardo Machado

Re: ajuda compilar

Enviado: 08 Jun 2008 10:50
por filizola
obrigado pela ajuda, baixei o instalardor e realmente é bem mais simples. porém ainda acontece o seguinte erro:

"error E2266: name given"

Re: ajuda compilar

Enviado: 08 Jun 2008 10:51
por filizola
a propósito,

bcc32.cfg

-IC:\bcc55\include;C:\xharbour\include
-LC:\bcc55\lib;C:\xharbour\lib

ilink32.cfg

-LC:\BCC55\LIB;C:\XHARBOUR\LIB

Re: ajuda compilar

Enviado: 08 Jun 2008 15:35
por sygecom
Olá Filizola,
Se você estiver usando pelo instalador, os arquivos "ILINK32.CFG" e "bcc32.cfg" não podem ser modificados, pq já estão com os endereços corretos para compilar sem erros usando "xbase\xharbour" e "xbase\bcc55\"

Se não tiver usando o instalador, verifique que os dois arquivos estão apontando para as pasta valida do seu xharbour e bcc55 e que seu PATH esta configurado.
E poste o .BC que esta usando para compilar !

Re: ajuda compilar

Enviado: 09 Jun 2008 11:06
por filizola
desculpe a confusão que fiz, na verdade usando o instalador dá o seguinte erro:

"error E2266: name given"

Re: ajuda compilar

Enviado: 09 Jun 2008 11:19
por sygecom
filizola escreveu:desculpe a confusão que fiz, na verdade usando o instalador dá o seguinte erro:

"error E2266: name given"
Sem mexer nos arquivos .CFG ?
Post seu .bc !

Re: ajuda compilar

Enviado: 09 Jun 2008 11:28
por filizola
ok, o xharbour esta instalado na minha maquina em casa, chegando a noite posto o .bc

muito obrigado pela atenção dispensada.

Re: ajuda compilar

Enviado: 10 Jun 2008 13:40
por filizola
eis o ilink.cfg o bcc32.cfg e o menu.bc

ilink.cfg
-LC:\BCC55\LIB;C:\XHARBOUR\LIB

bcc32.cfg
-IC:\bcc55\include;C:\xharbour\include
-LC:\bcc55\lib;C:\xharbour\lib

menu.bc

#BCC
VERSION=BCB.01
!ifndef CC_DIR
CC_DIR = $(MAKE_DIR)
!endif

!ifndef HB_DIR
HB_DIR = $(HARBOUR_DIR)
!endif

RECURSE= NO

SHELL =
COMPRESS = NO
EXTERNALLIB = NO
XFWH = NO
FILESTOADD = 5
WARNINGLEVEL = 0
USERDEFINE =
USERINCLUDE =
GUI = NO
MT = NO
SRC02 = obj
PROJECT = menu.exe $(PR)
OBJFILES = $(SRC02)\MENU.obj $(OB)
PRGFILES = MENU.PRG $(PS)
OBJCFILES = $(OBC)
CFILES = $(CF)
RESFILES =
RESDEPEN =
TOPMODULE = MENU.PRG
LIBFILES = lang.lib vm.lib rtl.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib dbffpt.lib common.lib gtwin.lib codepage.lib ct.lib tip.lib pcrepos.lib hsx.lib hbsix.lib
EXTLIBFILES =
DEFFILE =
HARBOURFLAGS = -w0
CFLAG1 = -OS $(SHELL) $(CFLAGS) -d -c -L$(HB_DIR)\lib
CFLAG2 = -I$(HB_DIR)\include;$(CC_DIR)\include
RFLAGS =
LFLAGS = -L$(CC_DIR)\lib\obj;$(CC_DIR)\lib;$(HB_DIR)\lib -Gn -M -m -s -Tpe -x -ap
IFLAGS =
LINKER = ilink32

ALLOBJ = c0x32.obj $(OBJFILES) $(OBJCFILES)
ALLRES = $(RESDEPEN)
ALLLIB = $(LIBFILES) import32.lib cw32.lib
.autodepend

#DEPENDS

#COMMANDS
.cpp.obj:
$(CC_DIR)\BIN\bcc32 $(CFLAG1) $(CFLAG2) -o$* $**

.c.obj:
$(CC_DIR)\BIN\bcc32 -I$(HB_DIR)\include $(CFLAG1) $(CFLAG2) -o$* $**

.prg.obj:
$(HB_DIR)\bin\harbour -D__EXPORT__ -n -go -I$(HB_DIR)\include $(HARBOURFLAGS) -o$* $**

.rc.res:
$(CC_DIR)\BIN\brcc32 $(RFLAGS) $<

#BUILD

$(PROJECT): $(CFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(CC_DIR)\BIN\$(LINKER) @&&!
$(LFLAGS) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!


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

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

Building object module for 'obj\MENU.c'
using C compiler 'BCC32' as defined in '\xharbour\bin\harbour.cfg'...
Exec: BCC32 -c -D__EXPORT__ -I\xharbour\include -d -L\xharbour\lib -oobj\MENU.obj obj\MENU.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
obj\MENU.c:
Error E2209 \xharbour\include\hbdefs.h 58: Unable to open include file 'stdarg.h'
Error E2209 \xharbour\include\hbdefs.h 59: Unable to open include file 'stdio.h'
Error E2209 \xharbour\include\hbdefs.h 60: Unable to open include file 'stdlib.h'
Error E2209 \xharbour\include\hbdefs.h 61: Unable to open include file 'string.h'
Error E2209 \xharbour\include\hbsetup.h 61: Unable to open include file 'limits.h'
Error E2188 \xharbour\include\hbdefs.h 411: Expression syntax
Error E2257 \xharbour\include\hbdefs.h 436: , expected
Error E2139 \xharbour\include\hbvmpub.h 227: Declaration missing ;
Error E2451 obj\MENU.c 29: Undefined symbol 'NULL'
Error E2141 obj\MENU.c 29: Declaration syntax error
Error E2190 obj\MENU.c 29: Unexpected }
Error E2190 obj\MENU.c 29: Unexpected }
Error E2040 obj\MENU.c 29: Declaration terminated incorrectly
Error E2190 obj\MENU.c 41: Unexpected }
Error E2190 obj\MENU.c 41: Unexpected }
Error E2109 obj\MENU.c 41: Not an allowed type in function hb_vm_SymbolInit_MENU
*** 16 errors in Compile ***
Done.
Deleting: "obj\MENU.c"
Done.

Re: ajuda compilar

Enviado: 11 Jun 2008 13:32
por filizola
resolvido, os arquivos cfg deveriam estar dentro da pasta \bcc55\in e não na pasta \xharbour\bin. agora é só alegria e mias algumas conseirinhas.


obrigado a todos