Page 1 of 3

Build with Visual Studio 2015 errors

PostPosted: Sat Mar 28, 2015 5:26 am
by TimStone
I'm trying to build a project that works in Visual Studio 2013, but I'm using it with VS 2015 Preview. I get the following Unresolved Externals:

__iob_func use in hbcplr.lib, hbpp.lib, hbvm.lib, rddcdx.lib, fiveH32.lib, and hbssl.lib

_printf used in rddcdx.lib and hbpp.lib

_ vacopy used in hbcommon.lib

_except_handler4_common in MSVCRTD.lib

Obviously I'm missing the link for one or more .lib files to provide these externals. Does anyone have ideas ?

Thanks.

Re: Build with Visual Studio 2015 errors

PostPosted: Sat Mar 28, 2015 6:36 am
by Antonio Linares
Tim,

Try to link msvcrt.lib

Re: Build with Visual Studio 2015 errors

PostPosted: Sat Mar 28, 2015 2:54 pm
by TimStone
Antonio,

That is not it. We were blocking it due to a conflict with another library, but allowing it, performing a Clean and complete rebuild still has all of the same errors.

From reading notes on VS 2015, and C++, apparently there are issues with .lib files built with older versions. They are saying the .lib files need to be built with VS 2015 also. You may get some idea of this in the Visual Studio support forum.

My guess is that VS 2015 will have a Community version that will be used by many developers here, so perhaps we can get a build of Harbour and FWH libs built with VS 2015. They have made some extensive improvements in CRT functioning which apparently relates to this.

Tim

Re: Build with Visual Studio 2015 errors

PostPosted: Mon Apr 06, 2015 6:14 pm
by TimStone
Antonio,

In case you didn't see this before, any chance of getting libs for Harbour / FWH build with MSVC 2015 ? I realize it is "early" but the preview has moved along pretty quickly and the changes are set for the issues we currently see ( as described in my first post in this thread ). I have also confirmed that 2015 will have the Free Community version.

Tim

Re: Build with Visual Studio 2015 errors

PostPosted: Mon Apr 06, 2015 8:57 pm
by Antonio Linares
Tim,

I need to install it and test it

Re: Build with Visual Studio 2015 errors

PostPosted: Mon Apr 06, 2015 10:08 pm
by TimStone
OK ... VS 2015 Preview is available ... no charge, and it's getting close to RTM.

Tim

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 9:22 am
by Antonio Linares
Tim,

Already installed,

next, to try it...

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 2:08 pm
by Antonio Linares
Tim,

I already tried it and got the iob_func and printf errors.

Not sure how to solve them yet.

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 2:11 pm
by Antonio Linares

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 3:40 pm
by TimStone
Antonio,

The article I read indicated we need to rebuild all libraries with VC 2015. That would include the Harbour and FWH libraries.

https://connect.microsoft.com/VisualStudio/feedback/details/1144980/error-lnk2001-unresolved-external-symbol-imp-iob-func

Tim

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 4:04 pm
by Antonio Linares
Tim,

ok, thanks

I will rebuild everything and will try it again :-)

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 5:25 pm
by Antonio Linares
Tim,

Solved :-)

I send you the new libs and Harbour

There is a problem in Harbour to be fixed. I have used a workaround in the meantime.

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 5:27 pm
by TimStone
I will test it when it arrives. Thank you.

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 5:38 pm
by Antonio Linares
Thanks to you for your great feedback and for making us aware of the new MS tools :-)

Re: Build with Visual Studio 2015 errors

PostPosted: Tue Apr 07, 2015 5:46 pm
by Antonio Linares
The only problem is that these new FWH libs are not backwards compatible. I just tested them

They require the new Harbour and VS2015