Closed gijzelaerr closed 6 years ago
o that is stupid, only now i see the missing cuda lib statement.
Ok, that didn't help, setting the cuda path correctly still yields the error: no matching function for call to swap
etc etc error.
What compiler are you using? I've only ever built/used bifrost under Ubuntu 14.04 with gcc 4.8.
Looks like a bug. That function AlignedBuffer::swap needs to take a non-const reference instead of const.
gcc version 7.3.0 (Ubuntu 7.3.0-12ubuntu1)
removing the const seems to solve the problem:
--- a/src/udp_capture.cpp
+++ b/src/udp_capture.cpp
@@ -174,7 +174,7 @@ public:
~AlignedBuffer() {
this->free();
}
- inline void swap(AlignedBuffer const& other) {
+ inline void swap(AlignedBuffer & other) {
std::swap(_buf, other._buf);
std::swap(_size, other._size);
std::swap(_alignment, other._alignment);
full log here https://gist.github.com/gijzelaerr/9aca21e9483cac9eb4731471c3e66662