How to build Far2.0 using VS2005?

You want to talk about Far Manager, but don't know where to turn?
Post Reply
damian
Posts: 1
Joined: Fri 29 May, 2009 08:06

How to build Far2.0 using VS2005?

Post 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
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Re: How to build Far2.0 using VS2005?

Post 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.
ultramage
Posts: 6
Joined: Sat 01 Nov, 2008 01:43

Re: How to build Far2.0 using VS2005?

Post 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?
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Re: How to build Far2.0 using VS2005?

Post 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.
satishbhawra42
Posts: 2
Joined: Fri 02 Oct, 2009 01:25
Contact:

Re: How to build Far2.0 using VS2005?

Post by satishbhawra42 »

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

Return to “General Discussions”