link error

NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

link error

Post by NWKL »

I'm moving from a previous version of BCC to BCC74 32bits , xharbour last version and fwh23.10 , I get this error when linking, is it missing a lib in make?

Error: Unresolved external '___get_std_stream' referenced from \XHARBOUR32\LIB\COMMON.LIB|hbtrace
Error: Unresolved external '__chdir' referenced from \XHARBOUR32\LIB\HBZIP.LIB|zipplatform
Error: Unable to perform link

thanks
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

Can you provide a little PRG sample and your compile batch, please?
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: link error

Post by Antonio Linares »

Code: Select all | Expand

#pragma BEGINDUMP

void __get_std_stream() {}
void _chdir() {}

#pragma ENDDUMP
https://forums.fivetechsupport.com/view ... 64#p265564
regards, saludos

Antonio Linares
www.fivetechsoft.com
NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

Re: link error

Post by NWKL »

thanks for reply.
i move to bcc77 , 32 bits, now i get:

Error: Unresolved external '__streams' referenced from \XHARBOUR32\LIB\RDDADS.LIB|ads1
Error: Unable to perform link

can i use the same tip?

void _streams() {}

this is affect my appl?

someone have rddads and ace32 compiled with last harbour and xharbour?

thanks again.
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

NWKL wrote:i move to bcc77 , 32 bits, now i get:

Error: Unresolved external '__streams' referenced from \XHARBOUR32\LIB\RDDADS.LIB|ads1
Error: Unable to perform link

can i use the same tip?

void _streams() {}
Yes, you can try it.
NWKL wrote:this is affect my appl?
It should not.
NWKL wrote:someone have rddads and ace32 compiled with last harbour and xharbour?
What do I need to compile them? Please note that I never used ADS.
NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

Re: link error

Post by NWKL »

Enrico, thanks for reply, last xharbour from site dont come with this libs, this is for use with ads, in folder source/contrib, without them i need compile xharbour again, i want use binaries from site.
ace32.lib i can get from implib, i need only rddads.lib.

thanks
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

What do I need to compile rddads.lib? I guess I need ADS installed but I don't have it.
NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

Re: link error

Post by NWKL »

hi, you dont need ads, only run makefile in contrib dir, i used this way when in past.

thanks
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

In the readme.txt there is this:

Code: Select all | Expand

SET HB_DIR_ADS=<install dir>
Required to build rdads.lib
Download URL: http://devzone.advantagedatabase.com/dz/content.aspx?Key=20
But that link is not valid anymore.
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

It looks like I need to install ADS, or am I wrong? Somebody can provide me ADS directory already installed, please?
NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

Re: link error

Post by NWKL »

Hi Enrico, you dont need ads server install, just ace or arc .
but i guess s a p dont have ads support now.

im trying another samples with bcc770 , with fwh samples, like designer, rbdesign and get link errors with buildx.bat from fivetech, is the samples compatible only with harbour ou bcc specific version?

thanks
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: link error

Post by Enrico Maria Giordano »

NWKL wrote:Hi Enrico, you dont need ads server install, just ace or arc .
but i guess s a p dont have ads support now.
I'm trying with an empty directory and this is what I get:

Code: Select all | Expand

fatal error C1083: Cannot open include file: 'ace.h': No such file or directory
Can you send me what is needed, please? Doing so, I will provide rddads.lib for all the future xHarbour builds.
NWKL wrote:im trying another samples with bcc770 , with fwh samples, like designer, rbdesign and get link errors with buildx.bat from fivetech, is the samples compatible only with harbour ou bcc specific version?
Can I see the error messages you get, please?
NWKL
Posts: 26
Joined: Thu Aug 04, 2022 12:45 pm

Re: link error

Post by NWKL »

this :

Error: Unresolved external '_HB_FUN_FREOPEN_STDERR' referenced from RBDESIGN.OBJ
Error: Unresolved external '_HB_FUN_HB_COMPILEFROMBUF' referenced from RBDESIGN.OBJ
Error: Unresolved external '_HB_FUN_HB_HRBRUN' referenced from RBDESIGN.OBJ
Error: Unable to perform link

im using xharbour binaries from xharbour.org, bcc770 and last fwh 32bits, with buildx from fivetech.
Post Reply