He meant libcmtd. --- On Thu, 5/8/10, Jordan Friendshuh <jman1156ga...@yahoo.com> wrote:
> From: Jordan Friendshuh <jman1156ga...@yahoo.com> > Subject: Re: [hlcoders] String_base error > To: "Discussion of Half-Life Programming" <hlcoders@list.valvesoftware.com> > Date: Thursday, 5 August, 2010, 23:55 > that made everything fail. > > > > > ________________________________ > From: Tobias Kammersgaard <tobias.kammersga...@gmail.com> > To: Discussion of Half-Life Programming <hlcoders@list.valvesoftware.com> > Sent: Wed, August 4, 2010 12:21:05 AM > Subject: Re: [hlcoders] String_base error > > Visual Studio 2010 works just fine. Both debug, and release > builds. I don't > have any code handy right now, but I'll show you my > settings once I do. > > Meanwhile try adding libcmt to the list of ignored > libraries (in the Linker > options). > > - ScarT > > Den 2010 8 4 03:58 skrev "Jordan Friendshuh" <jman1156ga...@yahoo.com>: > Hi. I am new to coding and am having an issue. > I'm using Visual Studio > 2010 > editing Game_HL2-2005 in the single player mod option for > regular HL2. > Without > making any changes to the files except the "fix debug > compilation", the > build > fails. It has to do with the linker and not being > able to find string_base > or > something. Can anyone help me? This is what it > says when you build. > > ------ Build started: Project: client_hl2, Configuration: > Debug HL2 Win32 > ------ > Build started 8/3/2010 8:40:01 PM. > InitializeBuildStatus: > Creating "Debug HL2\client_hl2.unsuccessfulbuild" because > "AlwaysCreate" > was > specified. > ClCompile: > All outputs are up-to-date. > All outputs are up-to-date. > All outputs are up-to-date. > ManifestResourceCompile: > All outputs are up-to-date. > C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): > warning MSB8012: TargetPath(C:\Crazy > Weapons\src\cl_dll\Debug > HL2\client_hl2.dll) does not match the Linker's OutputFile > property value > (C:\Crazy Weapons\src\cl_dll\Debug HL2\client.dll). This > may cause your > project > to build incorrectly. To correct this, please make sure > that $(OutDir), > $(TargetName) and $(TargetExt) property values match the > value specified in > %(Link.OutputFile). > C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): > warning MSB8012: TargetName(client_hl2) does not match the > Linker's > OutputFile > property value (client). This may cause your project to > build incorrectly. > To > correct this, please make sure that $(OutDir), > $(TargetName) and > $(TargetExt) > property values match the value specified in > %(Link.OutputFile). > Link: > All outputs are up-to-date. > Manifest: > All outputs are up-to-date. > BscMake: > All outputs are up-to-date. > CustomBuildStep: > Description: Copying to destination folder > 1 file(s) copied. > FinalizeBuildStatus: > Deleting file "Debug HL2\client_hl2.unsuccessfulbuild". > Touching "Debug HL2\client_hl2.lastbuildstate". > > Build succeeded. > > Time Elapsed 00:00:03.32 > ------ Build started: Project: server_hl2, Configuration: > Debug HL2 Win32 > ------ > Build started 8/3/2010 8:40:06 PM. > InitializeBuildStatus: > Touching "Debug HL2\server_hl2.unsuccessfulbuild". > ClCompile: > All outputs are up-to-date. > All outputs are up-to-date. > All outputs are up-to-date. > All outputs are up-to-date. > ManifestResourceCompile: > All outputs are up-to-date. > C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): > warning MSB8012: TargetPath(C:\Crazy > Weapons\src\dlls\Debug > HL2\server_hl2.dll) > does not match the Linker's OutputFile property value > (C:\Crazy > Weapons\src\dlls\Debug HL2\server.dll). This may cause your > project to build > incorrectly. To correct this, please make sure that > $(OutDir), $(TargetName) > and > $(TargetExt) property values match the value specified in > %(Link.OutputFile). > C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): > warning MSB8012: TargetName(server_hl2) does not match the > Linker's > OutputFile > property value (server). This may cause your project to > build incorrectly. > To > correct this, please make sure that $(OutDir), > $(TargetName) and > $(TargetExt) > property values match the value specified in > %(Link.OutputFile). > Link: > Creating library Debug HL2\server.lib and > object Debug HL2\server.exp > LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with > use of other > libs; > use /NODEFAULTLIB:library > choreoobjects.lib(choreoevent.obj) : error LNK2019: > unresolved external > symbol > "public: static void __cdecl > std::_String_base::_Xran(void)" > (?_x...@_string_base@std@@SAXXZ) referenced in function > "public: class > std::basic_string<char,struct > std::char_traits<char>,class > std::allocator<char> > > & __thiscall std::basic_string<char,struct > std::char_traits<char>,class > std::allocator<char> >::erase(unsigned > int,unsigned int)" > (?er...@?$basic_string@du?$char_tra...@d@std@@v?$alloca...@d@2@@std@ > @qaeaa...@ii@Z) > > choreoobjects.lib(choreoevent.obj) : error LNK2019: > unresolved external > symbol > "public: static void __cdecl > std::_String_base::_Xlen(void)" > (?_x...@_string_base@std@@SAXXZ) referenced in function > "protected: bool > __thiscall std::basic_string<char,struct > std::char_traits<char>,class > std::allocator<char> >::_Grow(unsigned int,bool)" > (?_g...@?$basic_string@du?$char_tra...@d@std@@v?$alloca...@d@2@@std@ > @iae_n...@z) > Debug HL2\server.dll : fatal error LNK1120: 2 unresolved > externals > > Build FAILED. > > Time Elapsed 00:00:43.60 > ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 > skipped ========== > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the > list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > _______________________________________________ > To unsubscribe, edit your list preferences, or view the > list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the > list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders