How to compile HPB_bot2.dll ?, How I can compile the source files with VC++ 6.0 ? |
How to compile HPB_bot2.dll ?, How I can compile the source files with VC++ 6.0 ? |
Salvax |
Feb 19 2007, 02:43 PM
Post
#1
|
Advanced Member Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 |
I really need some tips.
which kind of project should i create ? Win32 Dynamic Link Lib or MFC App wizard(dll) ? PS:I builded a DLL with MFC App wizard, but only 90kb, and can't work @ all . |
Cheeseh |
Feb 19 2007, 05:37 PM
Post
#2
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
I really need some tips. which kind of project should i create ? Win32 Dynamic Link Lib or MFC App wizard(dll) ? PS:I builded a DLL with MFC App wizard, but only 90kb, and can't work @ all . you need Microsoft Visual Studio 2003 .NET or 2005 .NET and load the .sln file If you only have VC6 you can try looking for a Visual Studio 2003 project converter to Visual Studio 6. |
Salvax |
Feb 20 2007, 01:07 AM
Post
#3
|
Advanced Member Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 |
ok,thx a lot !
so...if i add some codes in part of ur original *.cpp and *.h files ,then load ur original SLN files in 2005 .NET, it is gonna work ? |
Cheeseh |
Feb 20 2007, 01:10 AM
Post
#4
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
ok,thx a lot ! so...if i add some codes in part of ur original *.cpp and *.h files ,then load ur original SLN files in 2005 .NET, it is gonna work ? I don't know what you are meaning exactly, but.. I would load the SLN file in Visual studio and edit them within Visual Studio You also need to HL2 SDK source code (You can get from Steam) and extract the source code to any directory. Then Put the HPB_bot2 source folder into the src/utils/ folder |
Salvax |
Feb 20 2007, 01:35 AM
Post
#5
|
Advanced Member Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 |
i would try [Visual Studio .NET 2005] @ school today, but i don't have [HL2 SDK source code] there, so what should i do ? THX !
PS:I am downloading HL2 source SDK source from steam now, but how can i extract the [HL2 SDK source code] ? do i need GCF extractor ? BTW do u use VS2003 or VS2005 ? if i use VS 2005 will there be errors when i convert it into VS2005 SLN ? PS2:do i just extract the /utils folder from SourceSDK.GCF to my harddisk like this ? Or do i have to extract the whole /scr_mod folder to my harddisk and copy the bot source folder to (e.g.) X:\scr_mod\utils\ ? PS3: OK, I opened the SLN file with VS2005, but it says it is a lower version of VS, so i have to convert it to VS2005 SNL file, then i got 3 wannings in converted HPB_Bot2.vcproj, the converted SNL is fine. then i try to re-build ,HPB_Bot2 i get all this kind of errors full of my screen: QUOTE warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss PS4: i'm gonna try VS2003.NET anyway, i hope u use it too. |
Cheeseh |
Feb 20 2007, 12:15 PM
Post
#6
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
I use 2003 because thats what HL2 was compiled with, 2005 had some compatibility issues but has now been fixed http://developer.valvesoftware.com/wiki/So...K_Release_Notes
For installing the source sdk check: http://developer.valvesoftware.com/wiki/SDK_Docs Steam -> tools -> source SDK -> Utilities (Create a mod) -> Source code only -> <enter folder> e.g. C:\hl2src\ -> Next if you install to c:\hl2src then extract rcbot2 src into c:\hl2src\src\utils\ |
Salvax |
Feb 20 2007, 12:53 PM
Post
#7
|
Advanced Member Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 |
I use 2003 because thats what HL2 was compiled with, 2005 had some compatibility issues but has now been fixed http://developer.valvesoftware.com/wiki/So...K_Release_Notes For installing the source sdk check: http://developer.valvesoftware.com/wiki/SDK_Docs Steam -> tools -> source SDK -> Utilities (Create a mod) -> Source code only -> <enter folder> e.g. C:\hl2src\ -> Next if you install to c:\hl2src then extract rcbot2 src into c:\hl2src\src\utils\ OMG! What a day...still havn't built a lovely dll yet... ok, now i use VS2003 now, but when i start VS2003 --> File --> Open --> C:\hl2scr\utils\HPB_Bot2\HPB_Bot2.sln then it shows an error about : Project HPB_bot2.vcproj is under Source Code management, but this computer has no source code management application installed (something like Microsoft Visual SourceSafe) do i just ignore it or i have to install Microsoft Visual SourceSafe ? |
Cheeseh |
Feb 20 2007, 03:15 PM
Post
#8
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
cancel source management its not required. |
Salvax |
Feb 20 2007, 03:21 PM
Post
#9
|
Advanced Member Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 |
|
apalrd |
Nov 4 2008, 02:58 AM
Post
#10
|
Newbie Group: Members Posts: 4 Joined: 2-November 08 Member No.: 1,420 |
I am having a similar problem. I put my HL2 mod in C:\Mods\hl2-testmod I have the source code for HPB-bot2 in C:\Mods\hl2-testmod\src\utils\HPB_bot2 . It compiles nearly-fine, with only..... 28 errors. There are only 3 errors though, repeated several times. 1 is about mathlib.cpp, a few are about missing tchar.h, and a whole lot are about missing limits.h. I have tried searching the mod directory for tchar.h and limits.h, but have not found them. Does anyone else get these errors?
|
apalrd |
Dec 12 2008, 10:14 PM
Post
#11
|
Newbie Group: Members Posts: 4 Joined: 2-November 08 Member No.: 1,420 |
I am having a similar problem. I put my HL2 mod in C:\Mods\hl2-testmod I have the source code for HPB-bot2 in C:\Mods\hl2-testmod\src\utils\HPB_bot2 . It compiles nearly-fine, with only..... 28 errors. There are only 3 errors though, repeated several times. 1 is about mathlib.cpp, a few are about missing tchar.h, and a whole lot are about missing limits.h. I have tried searching the mod directory for tchar.h and limits.h, but have not found them. Does anyone else get these errors? Fixed the issues. Now it compiles fine. mathlib.cpp might be named mathlib_base.cpp, as a note the header issues were msvc not finding any header files at all (a problem with the installation) |
wyn10 |
Oct 3 2009, 06:44 AM
Post
#12
|
Member Group: Members Posts: 24 Joined: 27-July 09 Member No.: 1,626 |
Fixed the issues. Now it compiles fine. mathlib.cpp might be named mathlib_base.cpp, as a note the header issues were msvc not finding any header files at all (a problem with the installation) I'm getting all these error's.. CODE Error 2 error LNK2005: __malloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 3 error LNK2005: __nh_malloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 4 error LNK2005: __nh_malloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 5 error LNK2005: __heap_alloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 6 error LNK2005: __heap_alloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 7 error LNK2005: __calloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 8 error LNK2005: __recalloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 9 error LNK2005: __realloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 10 error LNK2005: __recalloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 11 error LNK2005: __expand already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 12 error LNK2005: __expand_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 13 error LNK2005: __free_nolock already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 14 error LNK2005: __free_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 15 error LNK2005: __free_dbg_nolock already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 16 error LNK2005: __msize already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 17 error LNK2005: __msize_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 18 error LNK2005: __CrtSetBreakAlloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 19 error LNK2005: __CrtSetDbgBlockType already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 20 error LNK2005: __CrtSetAllocHook already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 21 error LNK2005: __CrtGetAllocHook already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 22 error LNK2005: __CrtCheckMemory already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 23 error LNK2005: __CrtSetDbgFlag already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 24 error LNK2005: __CrtDoForAllClientObjects already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 25 error LNK2005: __CrtIsValidPointer already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 26 error LNK2005: __CrtIsValidHeapPointer already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 27 error LNK2005: __CrtIsMemoryBlock already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 28 error LNK2005: __CrtReportBlockType already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 29 error LNK2005: __CrtSetDumpClient already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 30 error LNK2005: __CrtGetDumpClient already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 31 error LNK2005: __CrtMemCheckpoint already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 32 error LNK2005: __CrtMemDifference already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 33 error LNK2005: __CrtMemDumpAllObjectsSince already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 34 error LNK2005: __CrtDumpMemoryLeaks already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 35 error LNK2005: __CrtMemDumpStatistics already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 36 error LNK2005: __aligned_malloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 37 error LNK2005: __aligned_malloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 38 error LNK2005: __aligned_realloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 39 error LNK2005: __aligned_recalloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 40 error LNK2005: __aligned_realloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 41 error LNK2005: __aligned_recalloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 42 error LNK2005: __aligned_offset_malloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 43 error LNK2005: __aligned_offset_malloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 44 error LNK2005: __aligned_offset_realloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 45 error LNK2005: __aligned_offset_recalloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 46 error LNK2005: __aligned_offset_realloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 47 error LNK2005: __aligned_offset_recalloc_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 48 error LNK2005: __aligned_free already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 49 error LNK2005: __aligned_free_dbg already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 50 error LNK2005: __CrtSetDebugFillThreshold already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 51 error LNK2005: __CrtSetCheckCount already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 52 error LNK2005: __CrtGetCheckCount already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 53 error LNK2005: __crtDbgFlag already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 54 error LNK2005: ___crtDebugFillThreshold already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 55 error LNK2005: ___crtDebugCheckCount already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 56 error LNK2005: __crtBreakAlloc already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 57 error LNK2005: __get_sbh_threshold already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 58 error LNK2005: __set_sbh_threshold already defined in memoverride.obj LIBCMTD.lib HPB_bot2 Error 59 fatal error LNK1169: one or more multiply defined symbols found .\Debug/HPB_bot2.dll HPB_bot2 |
bir3yk |
Oct 3 2009, 08:09 AM
Post
#13
|
RCBot Fan Group: Members Posts: 107 Joined: 4-June 09 Member No.: 1,566 |
|
wyn10 |
Oct 3 2009, 08:25 AM
Post
#14
|
Member Group: Members Posts: 24 Joined: 27-July 09 Member No.: 1,626 |
Ah thanks. Didn't see that topic. |
Lo-Fi Version | Time is now: 8th May 2024 - 04:32 AM |