Página 1 de 1
Função HB_ZipFile()
Enviado: 15 Fev 2012 21:31
por Softwhouse
Boa noite pessoal. Estou tendo problemas em usar a função HB_ZipFile(). Utilizo xHarbour 1.2.1 e só no linkar as bibliotecas HbmZip.Lib e HbZip.Lib já acusa diversos erros. Alguma luz? As variáveis de ambiente estão setadas para xHarbour/BIN e xHarbour/LIB, utilizo esses diretorios independente da versão do xHarbour.
Função HB_ZipFile()
Enviado: 15 Fev 2012 22:20
por alxsts
Olá!
Seja bem-vindo ao fórum Softwhouse!
Para agilizar o atendimento, informe as mensagens de erro mostradas.
Seria interessante também postar os teus scripts de compilação/linkedição.
Copie e cole no corpo da mensagem, entre as tags [ code] e [ /code]. Para isso, utilize o botão Code presente na barra de ferramentas abaixo do assunto da mensagem.
Função HB_ZipFile()
Enviado: 15 Fev 2012 23:34
por Softwhouse
Olá Alex,
Muito obrigado pela rápida resposta, a seguir o código de compilação e os erros
Código: Selecionar todos
Compilação
#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 = YES
XFWH = YES
FILESTOADD = 5
WARNINGLEVEL = 0
USERDEFINE =
USERINCLUDE =
USERLIBS =
EDITOR = edit
GUI = NO
MT = NO
SRC03 = obj
PROJECT = orcament.exe $(PR)
OBJFILES = $(SRC03)\ORCAMENT.obj $(SRC03)\BACKUP.obj $(SRC03)\CLIENTES.obj $(SRC03)\ETIQUETA.obj $(SRC03)\GETSYS.obj //
$(SRC03)\IONE.obj $(SRC03)\MENU.obj $(SRC03)\NUMEROS.obj $(SRC03)\ORCTOS.obj $(SRC03)\REINDEXA.obj //
$(SRC03)\RELATORS.obj $(SRC03)\UDFS.obj $(OB)
PRGFILES = ORCAMENT.PRG BACKUP.PRG CLIENTES.PRG ETIQUETA.PRG GETSYS.PRG //
IONE.PRG MENU.PRG NUMEROS.PRG ORCTOS.PRG REINDEXA.PRG //
RELATORS.PRG UDFS.PRG $(PS)
OBJCFILES = $(OBC)
CFILES = $(CF)
RESFILES =
RESDEPEN =
TOPMODULE = ORCAMENT.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 zlib.lib hbzip.lib hbmzip.lib
EXTLIBFILES = hbzip.lib hbmzip.lib
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 = $(USERLIBS) $(LIBFILES) import32.lib cw32.lib
.autodepend
#DEPENDS
#COMMANDS
.cpp.obj:
Erros
C:\Orcament>hbmake script.bc
C:\BCC55\BIN\ilink32 @makefile.lnk
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::__rw_stdexcept_BadAllocException' 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 '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::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::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> >::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
Função HB_ZipFile()
Enviado: 18 Fev 2012 00:00
por Softwhouse
Boa noite,
Agradeço a todos que manifestaram interesse em olhar o tópico. O problema foi resolvido com a reinstação do xHarbour em uma versão mais nova.