Displaying 1 result from an estimated 1 matches for "ldai".
Did you mean:
lda
2011 Aug 29
1
R-loadable dll with minGW-compiled linked library
...in>/g++ -c -Wno-deprecated -Wall -W -Wextra -DCYGWIN
-O3 -I<path toibdai/include> -I<path to boost_1_46_1> -o example.o
(To create shared library)
example examples/example.cpp
<path to Rtools/minGW/bin>/g++ -shared -s static-libgcc -o example.dll
example.o -L.../libdai/lib -ldai -L"C:/cygwin/lib" -lcygwin
Including the -lcygwin library is necessary for compilation without linker
error. However, it causes dyn.load to "hang" when used in R.
The tutorials on the web regarding creation of C++ dlls do not discuss
linking to libraries.
Thus my two quest...