[odamex-bug-reporter] [Bug 762] New: p_unlag.cpp fails it when compiling with Visual C++ 2010 (tag 0.5.6)

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Sat, 03 Dec 2011 19:13:16 +0000

http://odamex.net/bugs/show_bug.cgi?id=762

             Bug #: 762
           Summary: p_unlag.cpp fails it when compiling with Visual C++
                    2010 (tag 0.5.6)
    Classification: Unclassified
           Product: Odamex
           Version: 0.5
          Platform: x86 (Windows, Linux, etc)
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Server & Client
        AssignedTo: odamex-bug-reporter@xxxxxxxxxxxxx
        ReportedBy: alexmax2742@xxxxxxxxx


Note that in order to recreate this issue, you have to add p_unlag.cpp and
p_unlag.h to the vc9 project manually, as the vc9 project tagged 0.5.6 does not
include either of these files.

In any case, here's the error I ran into:

1>  p_unlag.cpp
1>..\..\common\p_unlag.cpp(608): error C2668: 'abs' : ambiguous call to
overloaded function
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdlib.h(471): could be '__int64 abs(__int64)'
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdlib.h(467): or       'long abs(long)'
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\math.h(547): or       'long double abs(long double)'
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\math.h(499): or       'float abs(float)'
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\math.h(495): or       'double abs(double)'
1>          c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\math.h(101): or       'int abs(int)'
1>          while trying to match the argument list '(unsigned long)'

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts:

  • » [odamex-bug-reporter] [Bug 762] New: p_unlag.cpp fails it when compiling with Visual C++ 2010 (tag 0.5.6) - odamex-bugtracker