|  |   | 
| (116 intermediate revisions by 40 users not shown) | 
| Line 1: | Line 1: | 
|  | == How to Compile with Visual C++ 2005 Express ==
 |  | * [[Talk:Compiling under VS2005/20090316|Archive 2009/03/16]] | 
|  | 
 |  | 
 | 
|  | steps till being able to compile with V C++05 Express:
 |  | == Visual C++ Express 2005 Directories Setup == | 
|  | 
 |  | 
 | 
|  | required:
 |  | After installing the Microsoft Windows (Platform) SDK, when setting up the directories in Visual C++ Express 2005 do you need to add "Source Files"?? It has one entry: | 
|  | 
 |  | 
 | 
|  | *MS DirectX SDK
 |  | $(VCInstallDir)crt\src | 
|  | *MS Platform SDK
 |  | 
|  | 
 |  | 
 | 
|  | Tools - Options:Projects and Solutions - VC++ Directories
 |  | I found this directory in the Platform SDK: | 
|  | 
 |  | 
 | 
|  | upper right select "executable files" and enter "...\Microsoft Platform SDK\Bin" (replace ... with your path of course)
 |  | C:\Program Files\Microsoft Platform SDK\src\crt | 
|  | 
 |  | 
 | 
|  | "include files" --> "...\Microsoft Platform SDK\Include" and "...\Microsoft DirectX SDK (December 2005)\Include"
 |  | Just curious if it needs to be added. | 
|  | 
 |  | 
 | 
|  | "libary files" --> "...\Microsoft Platform SDK\Lib" & "...\Microsoft DirectX SDK (December 2005)\Lib\x86"
 |  | == == | 
|  |  | OK, looks like I Googled for nothing, so I'm going to warn you guys now, if your getting errors, look in this page, because I Googled for 2 hours, just to be lead back to the page I started on, but at least it all works now, I'm glad for that. In conclusion, make sure you aren't looking at the fix before you Google for it... | 
|  | 
 |  | 
 | 
|  |  | == PRJ0019 == | 
|  | 
 |  | 
 | 
|  |  | When I Build my Mod (Debug), I get this error: | 
|  | 
 |  | 
 | 
|  | dbg.h
 |  | 
|  | 
 |  | 
 | 
|  | add
 |  | echo Project : error PRJ0019: A tool returned an error code from "Copying to c:\program files\steam\steamapps\SourceMods\hunternavan\bin\" | 
|  |  #pragma warning(disable :4996)
 |  | 
|  | after #pragma once (new line) todisable old, unsecure functions warning.
 |  | 
|  | 
 |  | 
 | 
|  |  | What do I do? --[[User:Adam.gamedev|Adam.gamedev]] 17:45, 12 July 2010 (UTC) | 
|  | 
 |  | 
 | 
|  | now the actual error fixes:
 |  | == gameinfo.txt == | 
|  | 
 |  | 
 | 
|  | '''Release:''' |  | When I Debug my Mod, I get this error: | 
|  |  |   Setup file 'gameinfo.txt' doesn't exist in subdirectory 'hl2'. | 
|  |  |   Check your -game paremeter or VCONFIG setting. | 
|  | 
 |  | 
 | 
|  | '''client:'''
 |  | What do I do? --[[User:Adam.gamedev|Adam.gamedev]] 19:33, 12 July 2010 (UTC) | 
|  |   |  | 
|  | ..\public\vstdlib\strtools.h(90):
 |  | 
|  |  inline char* Q_strrchr (const char *s, char c)
 |  | 
|  |   |  | 
|  |   |  | 
|  | ..\public\vstdlib\strtools.h(93) zu
 |  | 
|  |  nline char* Q_strstr( const char *s1, const char *search )
 |  | 
|  |   |  | 
|  | hud_bitmapnumericdisplay.cpp(159)
 |  | 
|  |  if( bStart || digit > 0 || pos <= pow((float)10,numSigDigits-1) )
 |  | 
|  |   |  | 
|  | ..\game_shared\baseentity_shared.cpp(245)
 |  | 
|  |  char *s = strchr( (char *)szKeyName, '#' );
 |  | 
|  |   |  | 
|  | ..\tier1\KeyValues.cpp(800)
 |  | 
|  |  char *subStr = strchr((char *)keyName, '/');
 |  | 
|  |   |  | 
|  |   |  | 
|  | Added msvcrt.lib and user32.lib to Linker->Input->Additional Dependencies
 |  | 
|  |   |  | 
|  | Added LIBC to Linker->Input->Ignore specific library
 |  | 
|  |   |  | 
|  | Added /FORCE:MULTIPLE to Linker->Command Line->Additional Options
 |  | 
|  |   |  | 
|  |   |  | 
|  | -----------
 |  | 
|  | '''hl:'''
 |  | 
|  |   |  | 
|  | vguiscreen.cpp(69)
 |  | 
|  |  char *s = strchr( (char *)szKeyName, '#' );
 |  | 
|  |   |  | 
|  | TemplateEntities.cpp(298)
 |  | 
|  |  int iMax = pow((double)10, (int)(strlen(ENTITYIO_FIXUP_STRING)-1)); // -1 for the &
 |  | 
|  |   |  | 
|  | Added user32.lib to Additional Dependencies under Linker->Input
 |  | 
|  |   |  | 
|  | Added /FORCE:MULTIPLE to Linker->Command Line->Additional Options
 |  | 
|  |   |  | 
|  |   |  | 
|  | -------------------------
 |  | 
|  | '''Debug:'''
 |  | 
|  | '''client:'''
 |  | 
|  |   |  | 
|  | ...\public\tier0\memoverride.cpp line 405-430
 |  | 
|  |   |  | 
|  | Remove "_base" from those functions. Looks then like that:
 |  | 
|  |   |  | 
|  |  #if defined(_DEBUG) && _MSC_VER >= 1300
 |  | 
|  |  void __cdecl _aligned_free(
 |  | 
|  |  void *
 |  | 
|  |  );
 |  | 
|  |  void * __cdecl _aligned_malloc(
 |  | 
|  |  size_t,
 |  | 
|  |  size_t
 |  | 
|  |  );
 |  | 
|  |  void * __cdecl _aligned_malloc_base(
 |  | 
|  |  size_t size,
 |  | 
|  |  size_t align
 |  | 
|  |  )
 |  | 
|  |  {
 |  | 
|  |  return _aligned_malloc(size, align);
 |  | 
|  |  }
 |  | 
|  |  
 |  | 
|  |  void __cdecl _aligned_free_base(
 |  | 
|  |  void *memblock
 |  | 
|  |  )
 |  | 
|  |  {
 |  | 
|  |  _aligned_free(memblock);
 |  | 
|  |  }
 |  | 
|  |  #endif[/quote]
 |  | 
|  |   |  | 
|  |   |  | 
|  | Added msvcrtd.lib and user32.lib Linker->Input->Additional Dependencies
 |  | 
|  |   |  | 
|  | Added /FORCE:MULTIPLE to Linker->Command Line->Additional Options
 |  | 
|  |   |  | 
|  | --------
 |  | 
|  | '''hl:'''
 |  | 
|  |   |  | 
|  | ...\dlls\ai_behavior_follow.cpp(2090)
 |  | 
|  |  #ASSERT_INVARIANT( sizeof(FollowerListIter_t) == sizeof(AI_FollowManagerInfoHandle_t) );
 |  | 
|  |   |  | 
|  | Added user32.lib to Linker->Input->Additional Dependencies
 |  | 
|  |   |  | 
|  | Added /FORCE:MULTIPLE to Linker->Command Line->Additional Options
 |  | 
|  |   |  | 
|  |   |  | 
|  | -------
 |  | 
|  |   |  | 
|  | thats as far as you get with [http://www.chatbear.com/board.plm?a=viewthread&t=104,1102070328,6443&b=4991&id=949052&v=flatold&s=0 this forumthreat]
 |  | 
|  |   |  | 
|  | i had some errors in c_rope
 |  | 
|  |   |  | 
|  | fixed it with:
 |  | 
|  |   |  | 
|  | taking the closing "}" from ''( int iRenderCache = 0; iRenderCache < nRenderCacheCount; ++iRenderCache )''
 |  | 
|  |   |  | 
|  | behind ''++m_aRenderCache[iRenderCache].m_nCacheCount;''
 |  | 
|  |   |  | 
|  | (means from line 231 (i think) to line 252)
 |  | 
|  |   |  | 
|  | other thing i did is, i added "int" in front of many "i" in for()'s (whatever it's called in eng *.*)
 |  | 
|  |   |  | 
|  | i'm still trying to complete this so it will compile, hope i could help anyone...
 |  | 
|  |   |  | 
|  | greetz
 |  | 
|  | --[[User:Rotzi|Created by: Rotzi]] 28 Jan 2006 (GMT+1) |  | 
|  |   |  | 
|  | ----
 |  | 
|  | I'll be getting a copy of Visual Studio 2005 (not express) in the next couple of weeks.Is there a problem compiling on it too or does anybody know yet? --[[User:AndrewNeo|AndrewNeo]]07:11,28 Jan 2006 (PST)
 |  | 
Visual C++ Express 2005 Directories Setup
After installing the Microsoft Windows (Platform) SDK, when setting up the directories in Visual C++ Express 2005 do you need to add "Source Files"?? It has one entry:
$(VCInstallDir)crt\src
I found this directory in the Platform SDK:
C:\Program Files\Microsoft Platform SDK\src\crt
Just curious if it needs to be added.
OK, looks like I Googled for nothing, so I'm going to warn you guys now, if your getting errors, look in this page, because I Googled for 2 hours, just to be lead back to the page I started on, but at least it all works now, I'm glad for that. In conclusion, make sure you aren't looking at the fix before you Google for it...
PRJ0019
When I Build my Mod (Debug), I get this error:
echo Project : error PRJ0019: A tool returned an error code from "Copying to c:\program files\steam\steamapps\SourceMods\hunternavan\bin\"
What do I do? --Adam.gamedev 17:45, 12 July 2010 (UTC)
gameinfo.txt
When I Debug my Mod, I get this error:
 Setup file 'gameinfo.txt' doesn't exist in subdirectory 'hl2'.
 Check your -game paremeter or VCONFIG setting.
What do I do? --Adam.gamedev 19:33, 12 July 2010 (UTC)