Results 1 to 6 of 6

Thread: Can't build configure.dsw

  1. #1
    Serf
    Join Date
    Dec 2006
    Location
    Prague, Czech Republic
    Posts
    3

    Exclamation Can't build configure.dsw

    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.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Hi,

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

    This thread has some info.

    I believe this platform sdk will still work with VC6. (From Feb 2003)

    However, it might make more sense to grab the free VC8 Express.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Serf
    Join Date
    Dec 2006
    Location
    Prague, Czech Republic
    Posts
    3

    Default

    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.

  4. #4

    Default Similar error

    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)

  5. #5
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    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.
    Seth A. Robinson
    Robinson Technologies

  6. #6

    Default YAY!

    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!

Similar Threads

  1. Weird build problem
    By void_kill in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 11-10-2006, 06:18 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •