You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ g++ a.cpp -o $HOME/main /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: /data/data/com.termux/files/usr/tmp/a-5e656c.o: in function long std::__ndk1::__libcpp_atomic_refcount_decrement<long>(long&)': a.cpp:(.text._ZNSt6__ndk134__libcpp_atomic_refcount_decrementIlEET_RS1_[_ZNSt6__ndk134__libcpp_atomic_refcount_decrementIlEET_RS1_]+0x28): undefined reference to __atomic_fetch_add_4' /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: /data/data/com.termux/files/usr/tmp/a-5e656c.o: in function long std::__ndk1::__libcpp_atomic_refcount_increment<long>(long&)': a.cpp:(.text._ZNSt6__ndk134__libcpp_atomic_refcount_incrementIlEET_RS1_[_ZNSt6__ndk134__libcpp_atomic_refcount_incrementIlEET_RS1_]+0x28): undefined reference to __atomic_fetch_add_4'
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
$
The text was updated successfully, but these errors were encountered:
Code
Compilation Error
$ g++ a.cpp -o $HOME/main /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: /data/data/com.termux/files/usr/tmp/a-5e656c.o: in function
long std::__ndk1::__libcpp_atomic_refcount_decrement<long>(long&)': a.cpp:(.text._ZNSt6__ndk134__libcpp_atomic_refcount_decrementIlEET_RS1_[_ZNSt6__ndk134__libcpp_atomic_refcount_decrementIlEET_RS1_]+0x28): undefined reference to
__atomic_fetch_add_4' /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: /data/data/com.termux/files/usr/tmp/a-5e656c.o: in functionlong std::__ndk1::__libcpp_atomic_refcount_increment<long>(long&)': a.cpp:(.text._ZNSt6__ndk134__libcpp_atomic_refcount_incrementIlEET_RS1_[_ZNSt6__ndk134__libcpp_atomic_refcount_incrementIlEET_RS1_]+0x28): undefined reference to
__atomic_fetch_add_4'clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
$
The text was updated successfully, but these errors were encountered: