PDA

View Full Version : Can't build configure.dsw



Angew
12-03-2006, 11:26 AM
I want to use ClanLib (0.8.0) with MS Visual C++ 6.0, but I can't build even configure.dsw. I downloaded and installed Service pack 5, as requested. However, when building Configure.exe, I get the following errors (I snapped out unnecessary path details):

NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
C:\...\ClanLib-0.8.0\Setup\Win32\page_finished.cpp(55) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_finished.cpp(78) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2065: 'LONG_PTR' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2146: syntax error : missing ')' before identifier 'self'
C:\...\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2059: syntax error : ')'
C:\...\ClanLib-0.8.0\Setup\Win32\page_system.cpp(129) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2065: 'LONG_PTR' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2146: syntax error : missing ')' before identifier 'self'
C:\...\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2059: syntax error : ')'
C:\...\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(129) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2065: 'LONG_PTR' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2146: syntax error : missing ')' before identifier 'self'
C:\...\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2059: syntax error : ')'
C:\...\ClanLib-0.8.0\Setup\Win32\page_target.cpp(97) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_welcome.cpp(53) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\...\ClanLib-0.8.0\Setup\Win32\page_welcome.cpp(72) : error C2065: 'GetWindowLongPtr' : undeclared identifier

Would anyone know what's wrong? If it's a matter of Windows Platform SDK, is there a VC6 version still available for download somewhere? I couldn't find any on the Microsoft web.

Seth
12-03-2006, 11:17 PM
Hi,

I believe you're correct, you will need the platform SDK.

This thread (http://www.nabble.com/Problems-installing-clanlib--please-help-t2117141.html) has some info.

I believe this platform sdk (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm) will still work with VC6. (From Feb 2003)

However, it might make more sense to grab the free VC8 Express.

Angew
12-04-2006, 06:49 AM
Thank you very much for your answer.

The program I need this for is a team project where VC 6 was set as the compiler to be used; still, I'll try to push for an upgrade to VC 8.

Thanks again.

megumiaraki
12-06-2006, 04:42 AM
I had a similar error so I downloaded the SDK, but it still doesn't work. It looks like some of the functions wasn't declared am I wrong?

Compiling...
page_finished.cpp
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_finished.cpp(55) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_finished.cpp(78) : error C2065: 'GetWindowLongPtr' : undeclared identifier
page_system.cpp
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2146: syntax error : missing ')' before identifier 'self'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system.cpp(118) : error C2059: syntax error : ')'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system.cpp(129) : error C2065: 'GetWindowLongPtr' : undeclared identifier
page_system2.cpp
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2146: syntax error : missing ')' before identifier 'self'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(118) : error C2059: syntax error : ')'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_system2.cpp(129) : error C2065: 'GetWindowLongPtr' : undeclared identifier
page_target.cpp
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2146: syntax error : missing ')' before identifier 'self'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_target.cpp(80) : error C2059: syntax error : ')'
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_target.cpp(97) : error C2065: 'GetWindowLongPtr' : undeclared identifier
page_welcome.cpp
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_welcome.cpp(53) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Development2\ClanLib-0.8.0\Setup\Win32\page_welcome.cpp(72) : error C2065: 'GetWindowLongPtr' : undeclared identifier
Generating Code...
Error executing cl.exe.

Configure.exe - 19 error(s), 0 warning(s)

Seth
12-06-2006, 07:04 AM
After unpacking the platform SDK, you will need to add its include directory as a global include path ABOVE your other paths in the VC6 path settings. (so it reads from them first)

If you've done that and still get errors, maybe try defining WINVER=0x0500 or something like that in your project settings.

megumiaraki
12-06-2006, 09:43 AM
YAY! You were right about the winver thing, It was actually winver 0x0400 I needed. YAY! I am so happy! Thanks for getting back to me so promptly ^_^! I hope it is smooth sailing from here XD!