Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sat Dec 06, 2014 5:29 pm

Hemos montado última versión de FWH 32 bits pero No logro averigüar el porque de el siguiente error de enlazado:
(Utilizamos las librerias hbComm.lib y hbZip.lib pero carezco de los fuentes para poderlas reconstruir)


Code: Select all  Expand view
***********************************
*     1.- Compilando el PRG...
*
xHarbour 1.2.3 Intl. (SimpLex) (Build 20140725)
Copyright 1999-2014, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'wges.prg' and generating preprocessed output to 'wges.ppo'...
Generating C source output to 'wges.c'...
Done.

Lines 23858, Functions/Procedures 382, pCodes 117653
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
wges.c:
***********************************
*     2.- Compilando el RC...
*
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
***********************************
*     3.- Generando fichero de listado de librerias a enlazar (b32.bc)...
*
***********************************
*     4.- Linking(Enlazando)...
*
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '__rwstd::__rw_stdexcept_NoNamedException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_HB_PCREPOS_LIBRARY' referenced from C:\XHARBOUR\LIB\RTL.LIB|regex
Error: Unresolved external '_png_get_io_ptr' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_read_struct' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_read_fn' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_info' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_valid' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_tRNS_to_alpha' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_gray_to_rgb' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_bgr' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_strip_16' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_IHDR' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_update_info' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_channels' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_rowbytes' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_image' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_read_struct' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_sig_cmp' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_write_struct' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_info_struct' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_IHDR' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_malloc' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_init_io' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_rows' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_write_png' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_free' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_write_struct' referenced from C:\FW23\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external 'SHCreateDirectoryExA' referenced from C:\FW23\LIB\FIVEHC.LIB|MKDIR
Error: Unresolved external '_hb_stack' referenced from C:\TWBROWSE\TWBRWX32.LIB|wbrwline
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__nullref' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__getRep(unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::ref_counted::~ref_counted()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rw_stdexcept_BadAllocException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__clone()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, const char *, unsigned int, unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator =(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::locale::init()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__global' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::~ctype_byname<char>()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype<char>::ctype<char>(const std::ctype_base::mask *, bool, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::ctype_byname<char>(const char *, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__make_explicit(const std::locale::id&, bool, int, __rwstd::facet_imp * (*)(int, const char *, unsigned int)) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned int, unsigned int, const char *, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipstring
Error: Unresolved external '__rwstd::__rwse_PosBeyondEndOfString' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(const char *, unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_UnexpectedNullPtr' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_StringIndexOutOfRange' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::except_msg_string::except_msg_string(const char *, ...)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char, std::char_traits<char>, std::allocator<char> >(const char *, const std::allocator<char>&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, unsigned int, char)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rwse_InvalidSizeParam' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_inflateEnd' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_deflate' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_get_crc_table' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_deflateEnd' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_deflateInit2_' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_crc32' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_inflateInit2_' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '_inflate' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
 
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sat Dec 06, 2014 6:17 pm

Verhoven,

Tienes que enlazar pcrepos.lib, png.lib, shell32.lib, zlib.lib tambien
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sat Dec 06, 2014 8:43 pm

Gracias por tu rápida respuesta Antonio, no obstante, se mantienen los siguientes errores añadiendo las lib que indicas y quitando hbzip.lib.
La clase de twrobse de Hernan la hemos recompilado sin errores pero al linkar da error Unresolved external '_hb_stack'
y las funciones para construir ficheros zip sustituyendo hbZip.lib por zlib.lib no corrige los errores.
Así mismo, usamos HBCOMM.LIB, que también daevuelve un error como puedes ver más abajo. Esta última no la hemos podido recompilar porque no tenemos los fuentes.
Te acompaño la salida del linkado para ver cual sería la mejor solución.

Code: Select all  Expand view
***********************************
*     1.- Compilando el PRG...
*
xHarbour 1.2.3 Intl. (SimpLex) (Build 20140725)
Copyright 1999-2014, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'wges.prg' and generating preprocessed output to 'wges.ppo'...Generating C source output to 'wges.c'...
Done.

Lines 23858, Functions/Procedures 382, pCodes 117653
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
wges.c:
***********************************
*     2.- Compilando el RC...
*
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
***********************************
*     3.- Generando fichero de listado de librerias a enlazar (b32.bc)...
*
***********************************
*     4.- Linking(Enlazando)...
*
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland

Error: Unresolved external '_hb_stack' referenced from C:\TWBROWSE\TWBRWX32.LIB|wbrwline

Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__nullref' referenced from C:\XHARBOUR\LIB\HBCOMM.LIB|comm

Error: Unresolved external '_HB_FUN_HB_GETFILECOUNT' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_SETZIPCOMMENT' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_ZIPFILE' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_ZIPFILEBYPKSPAN' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_ZIPWITHPASSWORD' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_GETFILESINZIP' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_GETZIPCOMMENT' referenced from C:\CLIWIN\FW\WGES.OBJ
Error: Unresolved external '_HB_FUN_HB_UNZIPFILE' referenced from C:\CLIWIN\FW\WGES.OBJ
 
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sat Dec 06, 2014 10:35 pm

Enlaza hbzip.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sat Dec 06, 2014 11:17 pm

He conseguido quitar errores de linkado recompilando el twbrowse de Hernan con unos modificadores y los de HBCOMM recompilando unos fuentes antiguos que he logrado encontrar (queda probar que luego todo funcione). Pero lo del HBZIP.LIB no lo logro.
Te paso la salida que me arroja el linkado:
Code: Select all  Expand view
***********************************
*     4.- Linking(Enlazando)...
*
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '__rwstd::__rw_stdexcept_NoNamedException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__nullref' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__getRep(unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::ref_counted::~ref_counted()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rw_stdexcept_BadAllocException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__clone()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, const char *, unsigned int, unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator =(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::locale::init()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__global' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::~ctype_byname<char>()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype<char>::ctype<char>(const std::ctype_base::mask *, bool, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::ctype_byname<char>(const char *, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__make_explicit(const std::locale::id&, bool, int, __rwstd::facet_imp * (*)(int, const char *, unsigned int)) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned int, unsigned int, const char *, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipstring
Error: Unresolved external '__rwstd::__rwse_PosBeyondEndOfString' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(const char *, unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_UnexpectedNullPtr' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_StringIndexOutOfRange' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::except_msg_string::except_msg_string(const char *, ...)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char, std::char_traits<char>, std::allocator<char> >(const char *, const std::allocator<char>&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, unsigned int, char)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rwse_InvalidSizeParam' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive


He encontrado unos fuentes, que no se si son los definitivos, pero me arroja un error el make que trae para el BCC pero como no me se manejar con los make no se como arreglarlo.
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 7:32 am

Prueba a enlazar cw32.lib de Borland
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sun Dec 07, 2014 7:44 am

Buenos días Antonio, te copio el .bat que uso para generar la aplicación, porque tiene incluida esa librería que indicas a pesar de lo cual falla:

Code: Select all  Expand view
@ECHO OFF
CLS

del %1.exe

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO ***********************************
ECHO *     1.- Compilando el PRG...
ECHO *

set hdir=C:\xHarbour
set bcdir=C:\bcc582
set fwdir=C:\fw23

%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc
%bcdir%\Bin\bcc32 -M -D__HARBOUR__ -c @b32.bc

:ENDCOMPILE

rem Compila el fichero de recursos de igual nombre que el prg.
ECHO ***********************************
ECHO *     2.- Compilando el RC...
ECHO *
IF EXIST %1.rc %bcdir%\Bin\brc32 -r %1
rem if exist %1.rc c:\PellesC\bin\porc /Ic:\pellesC\include %1.rc

ECHO ***********************************
ECHO *     3.- Generando fichero de listado de librerias a enlazar (b32.bc)...
ECHO *
echo c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc

rem ­ Hay que poner delante las que sustituyen a las de FW, o mejor dicho
rem    el enlazador pone en el exe las que primero encuentra !

echo c:\twbrowse\twbrwx32.lib + >> b32.bc

rem - Librerias de FWH32:
echo %fwdir%\lib\FiveHX.lib + >> b32.bc
rem echo %fwdir%\lib\FiveH.lib + >> b32.bc
echo %fwdir%\lib\FiveHC.lib + >> b32.bc

rem Las siguientes son las de xHarbour
echo %hdir%\lib\pcrepos.lib + >> b32.bc
echo %hdir%\lib\png.lib + >> b32.bc
echo %hdir%\lib\shell32.lib + >> b32.bc

echo %hdir%\lib\rtl.lib + >> b32.bc
echo %hdir%\lib\vm.lib + >> b32.bc
ECHO %hdir%\lib\gtgui.lib + >> b32.bc
echo %hdir%\lib\gtwin.lib + >> b32.bc
echo %hdir%\lib\lang.lib + >> b32.bc
echo %hdir%\lib\macro.lib + >> b32.bc
echo %hdir%\lib\rdd.lib + >> b32.bc

echo %hdir%\lib\dbfcdx.lib + >> b32.bc
echo %hdir%\lib\dbffpt.lib + >> b32.bc

echo %hdir%\lib\dbfntx.lib + >> b32.bc
REM echo %hdir%\lib\dbfdbt.lib + >> b32.bc

echo %hdir%\lib\hbsix.lib + >> b32.bc

echo %hdir%\lib\debug.lib + >> b32.bc
echo %hdir%\lib\common.lib + >> b32.bc
echo %hdir%\lib\pp.lib + >> b32.bc
ECHO %hdir%\lib\gtwin.lib + >> b32.bc
echo %hdir%\lib\codepage.lib + >> b32.bc
ECHO %hdir%\lib\ct.lib + >> b32.bc
echo %hdir%\lib\hbzip.lib + >> b32.bc
echo C:\CLIWIN\HBCOMM\hbcomm.lib + >> b32.bc
echo %hdir%\lib\zlib.lib + >> b32.bc

rem SEARCH Objects
rem LIB WinApi, Clipper, Extend, DbfNtx, Terminal

rem Uncomment these two lines to use Advantage RDD
rem echo %hdir%\lib\rddads.lib + >> b32.bc  
rem echo %hdir%\lib\ace32.lib + >> b32.bc

echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\wininet.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib, >> b32.bc

rem Linea para los recursos, por ej. del WS.
if exist %1.res echo %1.res >> b32.bc

ECHO ***********************************
ECHO *     4.- Linking(Enlazando)...
ECHO *
rem ­­Si no se pone el flag -aa simultaneamente abre ventana ms-dos.!!
%bcdir%\Bin\ilink32 -Gn -aa -Tpe -s @b32.bc

rem delete temporary files
 del %1.c
 del %1.tds
 del %1.ppo
 del %1.obj
 del %1.map
 rem del %1.res
 del b32.bc
 del clip.log

IF ERRORLEVEL 1 GOTO LINKERROR
rem ECHO _______________________________________
rem ECHO * Comprimiendo la aplicaci¢n con UPX  *
rem ECHO _______________________________________
rem upx %1.exe

ECHO _______________________________________________________________
ECHO * Aplicaci¢n construida correctamente con xHarbour a 32 bits. *
ECHO _______________________________________________________________

echo %1
GOTO EXIT
ECHO

:LINKERROR
PAUSE * Errores de Enlazado (Linking errors) *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: xBuild [Program]     {-- No especifiques la extensi¢n PRG
ECHO                                 {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO No existe: %1.PRG

:EXIT
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 8:23 am

Que errores te sigue mostrando al enlazar ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sun Dec 07, 2014 8:33 am

Los siguientes:

Code: Select all  Expand view
***********************************
*     4.- Linking(Enlazando)...
*
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '__rwstd::__rw_stdexcept_NoNamedException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__nullref' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__getRep(unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::ref_counted::~ref_counted()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rw_stdexcept_BadAllocException' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__clone()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, const char *, unsigned int, unsigned int, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator =(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipexception
Error: Unresolved external 'std::locale::init()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__global' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::~ctype_byname<char>()' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype<char>::ctype<char>(const std::ctype_base::mask *, bool, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::ctype_byname<char>::ctype_byname<char>(const char *, unsigned int)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::locale::__make_explicit(const std::locale::id&, bool, int, __rwstd::facet_imp * (*)(int, const char *, unsigned int)) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned int, unsigned int, const char *, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zipstring
Error: Unresolved external '__rwstd::__rwse_PosBeyondEndOfString' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(const char *, unsigned int, unsigned int) const' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_UnexpectedNullPtr' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::__rwse_StringIndexOutOfRange' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external '__rwstd::except_msg_string::except_msg_string(const char *, ...)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char, std::char_traits<char>, std::allocator<char> >(const char *, const std::allocator<char>&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|zippathcomponent
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned int, unsigned int, unsigned int, char)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__rwstd::__rwse_InvalidSizeParam' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 4:37 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sun Dec 07, 2014 7:30 pm

Uso los descargados esta semana recién comprados de Fivetech.
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 7:37 pm

Verhoven,

Por favor comprueba que sea el mismo xHarbour.

Tengo que comprobar si en la web hemos actualizado el build de xHarbour a esta nueva versión que te indico.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Verhoven » Sun Dec 07, 2014 7:54 pm

He descargado la versión de xHarbour que me indicas pero arroja dos errores nuevos más:
***********************************
* 4.- Linking(Enlazando)...
*
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_GETPROCADDRESS' referenced from C:\CLIWIN\FW\WINTPV.OBJ
Error: Unresolved external '_HB_FUN_CALLDLL' referenced from C:\CLIWIN\FW\WINTPV.OBJ
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 8:46 pm

Esas funciones se han renombrado como FWCallDLL() y GetProcAdd() para evitar conflictos con Harbour :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error de enlazado con FWH 14.11 y xHarbour 1.2.3

Postby Antonio Linares » Sun Dec 07, 2014 8:54 pm

Verhoven,

me parece que estás usando unas librerías incorrectas de xHarbour.

Haz la siguiente prueba: Abre hbzip.lib con el Total Commander (es el que yo uso siempre) y dale a view (F3). Situate encima de la libreria. Ahora busca por ejemplo la cadena std::locale::__global y en mi versión no me aparece, pero en tu error aparece como un símbolo externo luego esta dentro de tu versión de hbzip.lib

Lo mismo puedes verificarlo abriendo el fichero hbzip.lib con el UEStudio. Para mi es más cómodo con el Total Commander :-)

De hecho asi es como busco las líbrerias que faltan cuando a alguien le aparece una función no resuelta al enlazar :-)

Veríficalo, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 13 guests