'abs':ambiguous call to overloaded funct Created 7 years ago2016-10-08 18:39:43 UTC by Kidalex Kidalex

Created 7 years ago2016-10-08 18:39:43 UTC by Kidalex Kidalex

Posted 7 years ago2016-10-08 18:39:43 UTC Post #331935
whenever i try to build hldll in visual studio 2015 i get nine "'abs':ambiguous call to overloaded function" errors. i get five in bmodels.cpp, and i get the rest in func_break.cpp, plats.cpp, player.cpp, and roach.cpp. i don't know how to solve them, as i'm fairly new to half life modding. any help will be appreciated.
Posted 7 years ago2016-10-08 18:54:54 UTC Post #331936
This is a problem caused by changing standard library functions conflicting with older code in the SDK.
See this Github issue for the solution: https://github.com/ValveSoftware/halflife/issues/1702#issuecomment-225435957

Basically, change all ambiguous abs calls to fabs.
Posted 7 years ago2016-10-08 19:35:06 UTC Post #331940
it worked, thanks.
You must be logged in to post a response.