Hi,
I am trying to create a standalone executable via octave. I followed the instructions on the web site and compiled the following
code in octave using the ‘mkoctfile --link-stand-alone hello.cc –o hello’. However when I try to run the standalone I am seeing the following
error message:
error while loading shared libraries: libintlc.so.5: cannot open shared object file: No such file or directory
What I don’t understand is doesn’t the option –link-stand-alone create a static link?. Would greatly appreciate any insight into this issue.
Thank you
Kalyan
#include <iostream>
#include <octave/oct.h>
int
main (void)
{
std::cout << "Hello Octave world!\n";
int n = 2;
Matrix a_matrix = Matrix (n, n);
for (octave_idx_type i = 0; i < n; i++)
{
for (octave_idx_type j = 0; j < n; j++)
{
a_matrix (i, j) = (i + 1) * 10 + (j + 1);
}
}
std::cout << a_matrix;
return 0;
}