Skip to content

Including certain header files causes build errors due to duplicate functions. #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MikiyaKobayashi opened this issue Jan 27, 2025 · 0 comments
Labels

Comments

@MikiyaKobayashi
Copy link
Collaborator

MikiyaKobayashi commented Jan 27, 2025

■ Corresponding version
v.1.0.0 and v.1.1.0

■ Contents and Occurrence conditions
Including a specific header file in which the abs function is defined will result in the following build error.
error: too many arguments provided to function-like macro invocation
Header files that cause build errors when included are listed below.
<algorithm>, <any>, <array>, <atomic>, <bitset>, <ccomplex>, <chrono>, <codecvt>, <complex>, <condition_variable>, <ctgmath>, <deque>, <filesystem>, <format>, <forward_list>, <fstream>, <functional>, <iomanip>, <ios>, <iostream>, <istream>, <list>, <locale>, <map>, <mdspan>, <memory>, <memory_resource>, <mutex>, <numeric>, <optional>, <ostream>, <print>, <queue>, <random>, <ranges>, <regex>, <scoped_allocator>, <set>, <span>, <sstream>, <stack>, <streambuf>, <string>, <string_view>, <strstream>, <system_error>, <unordered_map>, <unordered_set>, <valarray>, <vector>

■ Workaround
Before including the specific header file in which the abs function is defined, write the following.
#undef abs

■ Permanent measures
Scheduled to be fixed in v.1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant