Page 1 of 2

Compilar con BCC582

Posted: Wed Aug 11, 2010 3:33 pm
by acuellar
Saludos para todos

Estoy tratando de compilar con FWH 9.04 xHarbour 1.21 Rev. 6714 y me salen estos errores:
  • Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
    Error: Unresolved external '__rwstd::__rw_stdexcept_NoNamedException' referenced from D:\COMPILER\FWH\LIB\FIVEHC.LIB|ANIGIF
    Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__nullref' referenced from D:\COMPILER\FWH\LIB\FIVEHC.LIB|ANIGIF
    Error: Unresolved external 'std::ios_base::failure::what() const' referenced from D:\COMPILER\FWH\LIB\FIVEHC.LIB|ANIGIF
    Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__getRep(unsigned int, unsigned int)' referenced from D:\COMPILER\FWH\LIB\FIVEHC.LIB|ANIGIF
    Error: Unresolved external '__rwstd::ref_counted::~ref_counted()' referenced from D:\COMPILER\FWH\LIB\FIVEHC.LIB|ANIGIF
Gracias por la ayuda,

Adhemar

Re: Compilar con BCC582

Posted: Thu Aug 12, 2010 12:32 pm
by acuellar
Me parece que el problema es que solo compila con versiones superior a FWH 9.4

Saludos

Adhemar

Re: Compilar con BCC582

Posted: Thu Aug 12, 2010 12:36 pm
by Daniel Garcia-Gil
Adhemar

Bcc582 se introdujo a partir de la 10.04

http://forums.fivetechsupport.com/viewt ... 894#p97894
* Nuevo: FWH ha sido construido usando Borland C 5.82. Desde ahora usaremos esta versión de Borland C. Puedes descargarlo desde:
http://www.fivetechsoft.com/files/software/bcc582.zip

Re: Compilar con BCC582

Posted: Thu Aug 12, 2010 12:53 pm
by acuellar
Gracias Daniel,
No estaba al tanto

Haré un esfuerzo para actualizar mi FWH

Saludos

Adhemar

Re: Compilar con BCC582

Posted: Thu Aug 12, 2010 10:21 pm
by surGom
Mis programas lo estoy compilando con bcc582 y uso fwh 7.12, con xharbour 1.21, compilaste fivehx.lib nuevamente?

Luis

Re: Compilar con BCC582

Posted: Fri Aug 13, 2010 12:13 pm
by acuellar
No

Cómo se compila la librería?

Gracias Luis

Saludos

Adhemar

Re: Compilar con BCC582

Posted: Fri Aug 13, 2010 11:49 pm
by surGom
Usá HARB2LIB.EXE, me parece que está en utilidades. Si no enviame tu mail y te lo envío

Luis

Re: Compilar con BCC582

Posted: Sat Aug 14, 2010 12:33 am
by surGom
Disculpa Adhemar pero no es con HARB2LIB.EXE con la que compilé. No recuerdo con que lo hice ya que tuve que hacer cambios en la pc y no encuentro dónde está, dejame buscarlo.

Re: Compilar con BCC582

Posted: Sat Aug 14, 2010 2:17 pm
by Patricio Avalos Aguirre

Re: Compilar con BCC582

Posted: Sat Aug 14, 2010 2:52 pm
by Daniel Garcia-Gil
Adhemar

El problema de recompilar los fuentes de tu version de FWH es que hay codigo reservado de fivewin que no podras tocar ni recompilar y puede que tengas confilcto por esa situacion, mas que nada con los .CPP que no son distribuidos.

Ahora antes de recompilar intenta sacando el modulo ANIGIF.OBJ de FIVEHC.LIB

si no te funciona, recompila los fuentes de FWH
igualmente puedes sacar el modulo ANIGIF.OBJ de FIVEHC.LIB

Re: Compilar con BCC582

Posted: Mon Aug 16, 2010 12:50 pm
by acuellar
Gracias amigos

Daniel, quite el obj ANIGIF.OBJ y compile y sale el siguiente error:

FIVEHC.LIB contains invalid OMF record, type 0x00

Recompile usando el siguiente .BAT

Code: Select all

for %%f in (*.prg) do d:\Compiler\xharbour\bin\harbour %%f /n /id:\Compiler\fwh\include;d:\Compiler\xharbour\include 
for %%f in (*.c) do d:\Compiler\bcc582\bin\bcc32 -c -Id:\Compiler\bcc582\include;d:\Compiler\xharbour\include %%f 
for %%f in (*.obj) do d:\Compiler\bcc582\bin\tlib fivehc.lib -+ %%f /0 /P32,,
 
y sigue saliendo el mismo error

Gracias una vez mas por la ayuda

Saludos

Adhemar

Re: Compilar con BCC582

Posted: Mon Aug 16, 2010 1:03 pm
by Daniel Garcia-Gil
Adhemar

que metodo usas para construir tu aplicacion?

puede que se estes armando mal

Re: Compilar con BCC582

Posted: Mon Aug 16, 2010 1:09 pm
by acuellar
Daniel

Uso UEstudio con el siguiente Application

Code: Select all

# --------- xHarbour y FWH configuration --------
# --- general --------------------------------------
# $P  - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I  - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for compiler
# --- build ----------------------------------------
# $T  - target full name
# $Tp - target path
# $Tn - target name
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for linker

[Settings]
Target = 
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =

Category&02 = Harbour Options
Automatic Memvar Declaration = no|yes
Variables Are Assumed = no|yes
Generate Preprocessed Output = no|yes
Warning Level = 1|2|3|4|0
User Include Path =
User Defines =

Compiler Options =
Linker Options =

Excluded Files = Excludes

[SettingsInfo]
Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working Directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Compiler Options = Provides a space for you to specify an additional compiler options.
User Defines = Shows the switches the tool will use to build. Use ';' as delimiter.
Linker Options = Provides a space for you to specify an additional linker options.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.

[SettingsReps]
User Defines = @[;|-D%s]
Automatic Memvar Declaration = no=|yes=/a
Variables Are Assumed = no=|yes=/v
Generate Preprocessed Output = no=|yes=/p
User Include Path = ^^@[;|;%s]
User Include Path&1 = ^^@[;| /i%s]
Use Multi Thread Library = no|yes
Warning Level = @/w%s

[Variables]
FWH = D:\COMPILER\FWH
HPATH = D:\COMPILER\xHarbour
CPATH = D:\COMPILER\bcc582

HPATHL = $(HPATH)\LIB
CPATHL = $(CPATH)\LIB

HOPT = /n /gc1 /q $(Compiler Options) /i$(HPATH)\INCLUDE $(User Include Path&1) $(User Defines) $(Automatic Memvar Declaration) $(Variables Are Assumed) $(Generate Preprocessed Output) $(Warning Level)
COPT = -O2 -M -c -v -I$(HPATH)\INCLUDE 

LOPT = -Gn -aa -Tpe -s -v
LIBS1 = $(FWH)\LIB\FiveHX.lib $(FWH)\LIB\FiveHC.lib $(HPATHL)\HBZIP.lib $(HPATHL)\ZLIB.lib $(FWH)\LIB\SBUTTONx.lib 
LIBS2 =  $(HPATHL)\rtl.lib $(HPATHL)\vm.lib $(HPATHL)\gtgui.lib $(HPATHL)\lang.lib $(HPATHL)\macro.lib $(HPATHL)\rdd.lib $(HPATHL)\dbfcdx.lib $(HPATHL)\dbfntx.lib $(HPATHL)\dbffpt.lib $(HPATHL)\hbsix.lib $(HPATHL)\debug.lib $(HPATHL)\common.lib $(HPATHL)\pp.lib $(HPATHL)\codepage.lib $(HPATHL)\pcrepos.lib $(HPATHL)\ct.lib
LIBS3 = $(CPATHL)\cw32.lib $(CPATHL)\import32.lib $(CPATHL)\psdk\odbc32.lib $(CPATHL)\psdk\msimg32.lib $(CPATHL)\psdk\nddeapi.lib $(CPATHL)\psdk\iphlpapi.lib  $(CPATHL)\psdk\rasapi32.lib
LIBS = $(LIBS1) $(LIBS2) $(LIBS3)

[Environment]
PATH = $(HPATH)\BIN;$(CPATH)\BIN;%PATH%
INCLUDE = $(HPATH)\INCLUDE;$(CPATH)\INCLUDE;$(FWH)\INCLUDE
LIB = $(HPATH)\LIB;$(CPATH)\LIB
BuildMode = %UESMode%

[General]
TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 1
UseDosNames = 1
Excludes = $(Excluded Files)
GenerateEDGroup=$(External Dependencies)
.CPP = .C

[MakeCommands]
run = Execute Application
makef = Show Makefile

[Execute Application]
Title = Execute $T
Cmd0 = $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = $(DCon)

[Show Makefile]
Title=Show makefile
Cmd0=uestudio makefile
ShowWindow=1
DisplayConsole=0

[InsertFiles]

[FileGroups]
FGO = .obj;
FGR = .res;
FGL = .lib;
FGD = .def;

[GroupFormats]
FGO = %s
FGR = %s
FGL = %s

[Build]
Out = $T
Depends = $FGO $FGR
DebugFlag = 
ReleaseFlag = 
Cmd0 = ilink32 $(LOPT) c0w32.obj $FGO, $Pp\$T,, $(LIBS),, $FGR
Cmd1 = $Pp\$T
Cmd2 = Borra.bat

[.PRG]
Out = $In.c
DebugFlag = /b
ReleaseFlag = /l
Cmd0 = harbour $I $(HOPT) $R /o$O 

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.

[.C]
Out = $In.obj
Cmd0 = bcc32 $(COPT) -o$O $I

[.RC]
Out = $In.res
Cmd0 = brc32 -r -fo$O $I

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.

 
Saludos

Adhemar

Re: Compilar con BCC582

Posted: Mon Aug 16, 2010 1:16 pm
by Daniel Garcia-Gil
Adhemar

Verifica este path dentro y que estes usando la version correcta de borland D:\COMPILER\bcc55

Re: Compilar con BCC582

Posted: Mon Aug 16, 2010 1:24 pm
by acuellar
Daniel, eso ya está corregido.

y sale el mismo error

Saludos

Adhemar