Skip to content

Commit

Permalink
minor fix for compile
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahWeiii committed Oct 9, 2023
1 parent 26fef60 commit da3fc81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fpermissive")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")
Expand Down
8 changes: 4 additions & 4 deletions src/intersection.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace threeyd
// in exact arithmetics, 'det' cannot be negative; but we must take into account floating-point errors
if (det < -1e-4)
{
throw std::logic_error{};
throw std::logic_error("Error: det < -1e-4");
}
if (det < 0.0)
{
Expand Down Expand Up @@ -1090,7 +1090,7 @@ namespace threeyd
bool status = n.normalize();
if (!status)
{
throw std::logic_error{};
throw std::logic_error("Error");
}
// xv1, xv2. xu1, xu2 are coordinates of V1,...,U2 projected onto the triline
// in this coordinate system, position of U0 is its origin
Expand Down Expand Up @@ -1742,9 +1742,9 @@ namespace threeyd
}
else // CASE 5: 000 [coplanar]
{
throw std::logic_error{
throw std::logic_error(
"triangles are coplanar (!?). This is an ERROR, as this case should have been dealt with by the "
"caller"};
"caller");
}
}
};
Expand Down

0 comments on commit da3fc81

Please sign in to comment.