#801 closed defect (fixed)
Fixed compile error C2668/C2065/C3861 & link error LNK2019 (Microsoft VS2010)
Reported by: | sunxunfeng | Owned by: | strk |
---|---|---|---|
Priority: | major | Milestone: | 3.6.2 |
Component: | Unit Tests | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: | kyngchaos |
Description
3>..\..\..\tests\unit\capi\GEOSSTRtreeTest.cpp(33): error C2668: “sqrt”: 对重载函数的调用不明确 3> D:\GreenSoft\VS2010\VC\include\math.h(589): 可能是“long double sqrt(long double)” 3> D:\GreenSoft\VS2010\VC\include\math.h(541): 或 “float sqrt(float)” 3> D:\GreenSoft\VS2010\VC\include\math.h(127): 或 “double sqrt(double)” 3> 尝试匹配参数列表“(int)”时 3>..\..\..\tests\unit\capi\GEOSDistanceTest.cpp(93): error C2065: “M_PI”: 未声明的标识符 3>..\..\..\tests\unit\capi\GEOSDistanceTest.cpp(124): warning C4800: “int”: 将值强制为布尔值“true”或“false”(性能警告) 3>..\..\..\tests\unit\capi\GEOSDistanceTest.cpp(125): warning C4800: “int”: 将值强制为布尔值“true”或“false”(性能警告) 3>..\..\..\tests\xmltester\XMLTester.cpp(338): error C3861: “round”: 找不到标识符 1>XMLTester.obj : error LNK2019: 无法解析的外部符号 "double __cdecl geos::util::java_math_round(double)" (?java_math_round@util@geos@@YANN@Z),该符号在函数 "double __cdecl geos::util::round(double)" (?round@util@geos@@YANN@Z) 中被引用 1>C:\t\geostrunk\vc2010\bin\Debug\xmltester.exe : fatal error LNK1120: 1 个无法解析的外部命令 1> 1>生成失败。 1> 1>已用时间 00:00:00.56
Attachments (4)
Change History (11)
by , 7 years ago
Attachment: | GEOSSTRtreeTest.cpp.patch added |
---|
by , 7 years ago
Attachment: | GEOSDistanceTest.cpp.patch added |
---|
by , 7 years ago
Attachment: | XMLTester.cpp.patch added |
---|
by , 7 years ago
Attachment: | CMakeLists.txt.patch added |
---|
comment:1 by , 7 years ago
Milestone: | → 3.6.1 |
---|---|
Summary: | Fixed compile error C2668/C2065/C3861 & link error LNK2019 (Miscrosoft VS2010) → Fixed compile error C2668/C2065/C3861 & link error LNK2019 (Microsoft VS2010) |
comment:2 by , 7 years ago
Milestone: | 3.6.1 → 3.6.2 |
---|
comment:3 by , 7 years ago
Owner: | changed from | to
---|
Fixed:
- GEOSSTRtreeTest.cpp.patch applied in https://git.osgeo.org/gogs/geos/geos/commit/667d18feff7acc6fa35fddc26d5884fc67b710dc and https://git.osgeo.org/gogs/geos/geos/commit/939412eacc379e7c4aa33865090fe35c49f225d7
- GEOSDistanceTest.cpp.patch already been fixed
Delegated:
- XMLTester.cpp.patch - maintained by strk
- CMakeLists.txt.patch - CMake is not an official build; change related to XMLTester
comment:6 by , 7 years ago
Cc: | added |
---|
Only patch not applied is the CMake related one. CMake build scripts are missing a maintainer
comment:7 by , 7 years ago
btw, I see src/CMakeLists.txt containing a snippet: file(GLOB_RECURSE geos_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
which looks like supposedly already including math.cpp...
Note:
See TracTickets
for help on using tickets.
Ticket retargeted after milestone closed