Page 1 of 1

How to build Far2.0 using VS2005?

Posted: Fri 29 May, 2009 08:17
by damian
Hi

Is it possible to build Far2 project using Visual Studio 2005?
I did the following (using VS2005 IDE):

I downloaded (checked out) all the source files from the repository unicode_far (revison 3041, May 29, 2009 07:25 GMT)
In order to be able to open the solution in VS2005 I edited the files:
far2.VS2008.sln: line 2: Format Version 10.00 changed to Format Version 9.00
far2.VS2008.vcproj: line 4: Version="9,00" changed to Version="8,00"

I chose "Build solution" option and obtained the following message:


Compiling...
headers.cpp
g:\vc.src\unicode_far\sdkpatches.hpp(450) : error C2146: syntax error : missing ';' before identifier 'Status'
g:\vc.src\unicode_far\sdkpatches.hpp(450) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
g:\vc.src\unicode_far\sdkpatches.hpp(450) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Build log was saved at "[...]\unicode_far\Release.64.vc\obj\BuildLog"
far2 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


It seems that the definition of NTSTATUS from imports.hpp is not seen in sdkpatches.hpp.

The destination platform (win32 or x64) does give the same error message.


Is anyone able to work this problem out?
One more question: Is it possible to build this project from command line using VS2005?
Thanks in advance for your help.

Damian

Re: How to build Far2.0 using VS2005?

Posted: Fri 29 May, 2009 08:23
by DrKnS
Is anyone able to work this problem out?
Use newer WinSDK.
Is it possible to build this project from command line using VS2005?
Yes.

Re: How to build Far2.0 using VS2005?

Posted: Fri 11 Sep, 2009 15:20
by ultramage
I made an identical report at bugs.farmanager.com/view.php?id=1051.

I noticed "sdkpatches" attempts to add some sort of compatibility. I know of projects that add backwards support for earlier sdks (there's a #define somewhere that can tell you what sdk version you're building with). Maybe this could be done too?

An alternative suggestion would be to add some form of #error compiler death message to inform the user about which version of the sdk is required to build. Does this sound reasonable?

Re: How to build Far2.0 using VS2005?

Posted: Fri 11 Sep, 2009 16:23
by DrKnS
I noticed "sdkpatches" attempts to add some sort of compatibility.
Yes, but mostly for gcc, its headers are very poor.
I know of projects that add backwards support for earlier sdks (there's a #define somewhere that can tell you what sdk version you're building with). Maybe this could be done too?
Unlikely. Newer sdk is better than older, and absolutely free. No loss, only profit :)
An alternative suggestion would be to add some form of #error compiler death message to inform the user about which version of the sdk is required to build. Does this sound reasonable?
Yes.

Re: How to build Far2.0 using VS2005?

Posted: Fri 02 Oct, 2009 01:26
by satishbhawra42
Is it possible to build Far2 project using Visual Studio 2005?
I did the following (using VS2005 IDE):