Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
72 Views

Please help!! "undefined reference to `daal::..."

Hello all

I am having trouble with compiling under the daal package, with the following compilation errors (using Windows10). Can any kind soul please save me?

 

Error in compileCode(f, code, language = language, verbose = verbose) : 
  Compilation ERROR, function(s)/method(s) not created! file2ddc1463da6.o:file2ddc1463da6.cpp:(.text+0x2e6): undefined reference to `daal::data_management::interface1::SerializationIface::serialize(daal::data_management::interface1::InputDataArchive&)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text+0x304): undefined reference to `daal::data_management::interface1::SerializationIface::serialize(daal::data_management::interface1::InputDataArchive&)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacenwEy[_ZN4daal15data_management10interface118SerializationIfacenwEy]+0x16): undefined reference to `daal::services::daal_malloc(unsigned long long, unsigned long long)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacenaEy[_ZN4daal15data_management10interface118SerializationIfacenaEy]+0x16): undefined reference to `daal::services::daal_malloc(unsigned long long, unsigned long long)'
fi

The source for this error is as follows (excerpt only as there are a tonne of these errors):

file2ddc1463da6.o:file2ddc1463da6.cpp:(.text+0x2e6): undefined reference to `daal::data_management::interface1::SerializationIface::serialize(daal::data_management::interface1::InputDataArchive&)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text+0x304): undefined reference to `daal::data_management::interface1::SerializationIface::serialize(daal::data_management::interface1::InputDataArchive&)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacenwEy[_ZN4daal15data_management10interface118SerializationIfacenwEy]+0x16): undefined reference to `daal::services::daal_malloc(unsigned long long, unsigned long long)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacenaEy[_ZN4daal15data_management10interface118SerializationIfacenaEy]+0x16): undefined reference to `daal::services::daal_malloc(unsigned long long, unsigned long long)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacedlEPvy[_ZN4daal15data_management10interface118SerializationIfacedlEPvy]+0x15): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface118SerializationIfacedaEPvy[_ZN4daal15data_management10interface118SerializationIfacedaEPvy]+0x15): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal8services10interface19AtomicIntnwEy[_ZN4daal8services10interface19AtomicIntnwEy]+0x16): undefined reference to `daal::services::daal_malloc(unsigned long long, unsigned long long)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal8services10interface19AtomicIntdlEPvy[_ZN4daal8services10interface19AtomicIntdlEPvy]+0x15): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal8services10interface121KernelErrorCollectionD1Ev[_ZN4daal8services10interface121KernelErrorCollectionD1Ev]+0x39): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZNK4daal8services10interface115ErrorCollection14getDescriptionEv[_ZNK4daal8services10interface115ErrorCollection14getDescriptionEv]+0x20): undefined reference to `daal::services::interface1::KernelErrorCollection::getDescription()'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchiveD1Ev[_ZN4daal15data_management10interface111DataArchiveD1Ev]+0x45): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchiveD1Ev[_ZN4daal15data_management10interface111DataArchiveD1Ev]+0x65): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchiveD1Ev[_ZN4daal15data_management10interface111DataArchiveD1Ev]+0x75): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchiveD1Ev[_ZN4daal15data_management10interface111DataArchiveD1Ev]+0x85): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchiveD1Ev[_ZN4daal15data_management10interface111DataArchiveD1Ev]+0xa8): undefined reference to `daal::services::daal_free(void*)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchive5writeEPhy[_ZN4daal15data_management10interface111DataArchive5writeEPhy]+0xd2): undefined reference to `daal::services::daal_memcpy_s(void*, unsigned long long, void const*, unsigned long long)'
file2ddc1463da6.o:file2ddc1463da6.cpp:(.text$_ZN4daal15data_management10interface111DataArchive4readEPhy[_ZN4daal15data_management10interface111DataArchive4readEPhy]+0xbc): undefined reference to `daal::services::daal_memcpy_s(void*, unsigned long long, void const*, unsigned long long)'

 

0 Kudos
4 Replies
Highlighted
72 Views

Hello!

It happened because you didn`t linked DAAL libs to your application.

See "Step 3 (Optional): Build Your Application with Different Compilers" of "Get Started with Intel® Data Analytics Acceleration Library for Windows*".

Andrey

0 Kudos
Highlighted
Beginner
72 Views

Many thanks Andrey

I am struggling to work out how to implement Step 3 into the following code (am using Windows 10):

https://www.codeproject.com/Articles/1151606/Lightning-Fast-R-Machine-Learning-Algorithms

Is there any direction that you might be able to give me? (Have struggled my way to here, and am hoping that you might be able to help)

Many thanks,

Keyur

0 Kudos
Highlighted
72 Views

to provide you qualified help, I need to know in details which steps you perform to build your application. As I see from neighbor thread at this forum, you are trying to build R plugin. please provide me details which changes you have done in sources and which steps you perform to build them. And if it possible, int will be nice if you attach whole your project.

Andrey

0 Kudos
Highlighted
72 Views

I have found article which described task similar yours (as I think) - https://software.intel.com/en-us/articles/extending-r-with-intel-mkl.

see section "Building the wrapper". change MKL related stuff to DAAL. instead of doing "SET MKL_ROOT="C:\Program Files (x86)\Intel\Composer XE 2013"" call daalvars.bat script.

0 Kudos