Page 1 of 1

UniDAC 4.3.8 C++ dependency issues

Posted: Fri 17 Aug 2012 06:46
by duffo64
Dear All,

I just installed latest UniDAC version, and tried to rebuild my applications.
Unfortunately the linker complains with an error:

[ILINK32 Error] Error: Unresolved external 'WSAIoctl' referenced from C:\VCL\DEVART\LIB\DAC140.LIB|CRVioTcp

Same error in RAD 2010/XE/XE2, always C++, but if I add the ws2_32.lib library the app compiles. Unfortunately this addition breaks Atozed's Intraweb (12.2.x) !

Any Hint ?
Thanks

Claudio

Re: UniDAC 4.3.8 C++ dependency issues

Posted: Fri 17 Aug 2012 09:15
by AndreyZ
Hello,

You found the correct solution.
The ws2_32.lib library is a standard library supplied with C++Builder. Please specify the exact way in what adding ws2_32.lib to your project breaks it.

Re: UniDAC 4.3.8 C++ dependency issues

Posted: Fri 17 Aug 2012 09:54
by duffo64
Andrej,

Thanks for fast reply, and some more detail:

XE and IW 11.0.58: no issues
XE2 and IW 12.2.8: no issues if linker uses runtime packages

XE2 and IW 12.2.8 with static linking fails immediatly with error "Cannot find internal file: IW_JS_QUERY"

So IW 12.2.8 dislike this dependency. If this will not be sorted out, please tell me what is the last usable release of UniDAC that does not need this library.

Thank you

Claudio

Re: UniDAC 4.3.8 C++ dependency issues

Posted: Fri 17 Aug 2012 12:29
by AndreyZ
I have checked this question using UniDAC 4.3.8 and Atozed's IntraWeb 12.2.8 in C++Builder XE2, and there were no problems regardless runtime packages were used or static linking. The IW_JS_QUERY file is seems to be (judging by its name) from Atozed IntraWeb, but Atozed IntraWeb does not contain this file or any links to it. Please check if your application has links to this file. Also, please try to reproduce this problem in a new application. If you can do this, please send this application to andreyz*devart*com .

Re: UniDAC 4.3.8 C++ dependency issues

Posted: Fri 17 Aug 2012 15:29
by duffo64
The issue was related to Hotfix 4 (that I installed because of new UniDAC requirement), that in turn reverted IW12 in evaluation mode, and messed up all.
Deleted a ton of files, uninstalled and reinstalled IW and TMS components, now all ok.

Please, accept my apologies for this 'false positive'.

Claudio

Re: UniDAC 4.3.8 C++ dependency issues

Posted: Mon 20 Aug 2012 05:24
by AndreyZ
It is good to see that you have found a solution. If any other questions come up, please contact us.
Please note that UniDAC requires RAD Studio Update 4 Hotfix 1 because even update versions and Hotfix 1 of RAD Studio XE2 are not compatible with previous updates. We cannot influence this.