Hi, I've download the precompiled OIDN to include them in a C++ project.
I've create an example.cpp to try them,
#include "include/OpenImageDenoise/oidn.hpp"
using namespace oidn;
int main() {
oidn::DeviceRef device = oidn::newDevice();
device.commit();
}
However, when i try compiling it with the command
g++ example.cpp
I got the following error
/tmp/ccEJJInc.o: In function oidn::DeviceRef::~DeviceRef()': example.cpp:(.text._ZN4oidn9DeviceRefD2Ev[_ZN4oidn9DeviceRefD5Ev]+0x23): undefined reference tooidnReleaseDevice'
/tmp/ccEJJInc.o: In function oidn::DeviceRef::commit()': example.cpp:(.text._ZN4oidn9DeviceRef6commitEv[_ZN4oidn9DeviceRef6commitEv]+0x17): undefined reference tooidnCommitDevice'
/tmp/ccEJJInc.o: In function oidn::newDevice(oidn::DeviceType)': example.cpp:(.text._ZN4oidn9newDeviceENS_10DeviceTypeE[_ZN4oidn9newDeviceENS_10DeviceTypeE]+0x15): undefined reference tooidnNewDevice'
collect2: error: ld returned 1 exit status
Am I missing something or they cannot be use with the precompliled version and I should use the source code and compile it?
Hi, I've download the precompiled OIDN to include them in a C++ project. I've create an example.cpp to try them,
However, when i try compiling it with the command
I got the following error
/tmp/ccEJJInc.o: In function
oidn::DeviceRef::~DeviceRef()': example.cpp:(.text._ZN4oidn9DeviceRefD2Ev[_ZN4oidn9DeviceRefD5Ev]+0x23): undefined reference to
oidnReleaseDevice' /tmp/ccEJJInc.o: In functionoidn::DeviceRef::commit()': example.cpp:(.text._ZN4oidn9DeviceRef6commitEv[_ZN4oidn9DeviceRef6commitEv]+0x17): undefined reference to
oidnCommitDevice' /tmp/ccEJJInc.o: In functionoidn::newDevice(oidn::DeviceType)': example.cpp:(.text._ZN4oidn9newDeviceENS_10DeviceTypeE[_ZN4oidn9newDeviceENS_10DeviceTypeE]+0x15): undefined reference to
oidnNewDevice' collect2: error: ld returned 1 exit statusAm I missing something or they cannot be use with the precompliled version and I should use the source code and compile it?