Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

HL2 SDK Compilation Problems

  • 12-12-2004 08:13PM
    #1
    Registered Users, Registered Users 2 Posts: 8,483 ✭✭✭


    Anyone else suffering problems?

    Downloaded and installed Visual C++ 2005 Beta with the .NET 2 Beta framework from Microsoft. (This was the recommended version to use, and all I could find...).

    I setup the developer environment as specified in the setup instructions and set the build configuration to Release SDK.

    On compilation I get...
    ------ Build started: Project: client, Configuration: Release SDK Win32 ------
    Compiling...
    cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
    stdafx.cpp
    ..\public\tier0\dbg.h(482) : warning C4996: '_vsnprintf' was declared deprecated
            C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(304) : see declaration of '_vsnprintf'
    ..\public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
            Conversion loses qualifiers
    ..\public\vstdlib\strtools.h(93) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
            Conversion loses qualifiers
    Creating browse information file...
    Microsoft Browse Information Maintenance Utility Version 8.00.40607
    Copyright (C) Microsoft Corporation. All rights reserved.
    BSCMAKE: error BK1506 : cannot open file '.\Release_SDK\activitylist.sbr': No such file or directory
    Build log was saved at "file://c:\DeadFlesh\src\cl_dll\Release_SDK\BuildLog.htm"
    client - 3 error(s), 2 warning(s)
    ------ Build started: Project: hl, Configuration: Release SDK Win32 ------
    Compiling...
    cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
    stdafx.cpp
    ../public\tier0\dbg.h(482) : warning C4996: '_vsnprintf' was declared deprecated
            C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(304) : see declaration of '_vsnprintf'
    ../public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
            Conversion loses qualifiers
    ../public\vstdlib\strtools.h(93) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
            Conversion loses qualifiers
    Creating browse information file...
    Microsoft Browse Information Maintenance Utility Version 8.00.40607
    Copyright (C) Microsoft Corporation. All rights reserved.
    BSCMAKE: error BK1506 : cannot open file '.\Release_SDK\activitylist.sbr': No such file or directory
    Build log was saved at "file://c:\DeadFlesh\src\dlls\Release_SDK\BuildLog.htm"
    hl - 3 error(s), 2 warning(s)
    ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
    

    I'm at a loss :( Any help lads?


Comments

  • Registered Users, Registered Users 2 Posts: 6,810 ✭✭✭DRakE


    What exactly are you trying to do? Compile code?


  • Registered Users, Registered Users 2 Posts: 8,483 ✭✭✭Töpher


    Aye, build the initial code into at least working dlls, so I have a point from which to start.
    No point going on with coding if the supplied code doesn't compile right... Any ideas?


  • Registered Users, Registered Users 2 Posts: 6,810 ✭✭✭DRakE


    Your talking to the wrong person here mate :(

    I'll see if my programming friend can make heads or tails of it :)


  • Closed Accounts Posts: 703 ✭✭✭SolarNexus


    ../public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
    Conversion loses qualifiers
    ../public\vstdlib\strtools.h(93) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
    Conversion loses qualifiers
    you have two return statements that return the wrong data-type; your trying to return a value which is of the data type "const char *", whereas the function requires a "char *" return value.

    Change the datatype, or at least show us the code, not the error message. cant do much with an error message.

    edit: this is a VC++ problem, and should probably me moved to that forum (programming).


  • Registered Users, Registered Users 2 Posts: 8,483 ✭✭✭Töpher


    K, thanks, its just I haven't changed anything yet! Oh well, more figthing with it to be done! Yarr!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,810 ✭✭✭DRakE


    I'll move it over to the programming board so :)

    MOOOVED.


  • Registered Users, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭ressem


    The recommended version to use is VS 7.1 , ie C++ .Net 2003.

    It builds without issues. Unfortunately only parts of 2003 are free, including the compiler, excluding the IDE. (http://msdn.microsoft.com/visualc/vctoolkit2003/)

    You should be able to get the 2005 IDE to work with the 2003 compiler (Tools / Options /Projects /VC++ Directories), but that's a guess, it might be restricted. Otherwise you can use another ide or the command line to do the build stage, copying the project build commands from those included in the solution file.


  • Registered Users, Registered Users 2 Posts: 8,483 ✭✭✭Töpher


    Thanks for the tips, downloading the toolkit now and will see how I get on. :) Thanking you very much kind sir :) And thanks DRakE for moving it :)


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭SirLemonhead




Advertisement