Hi,
I try to run the following sample problem that is in the internet:
int main()
{
string_vector argv(2);
argv(0) = "embedded";
argv(1) = "-q";
if (octave_main(2, argv.c_str_vec(), 1))
{
std::cout << "GCD of [12, 16] is ";
// Use octave_value_list directly as input
octave_value_list in(2);
in(0) = 12;
in(1) = 16;
octave_value_list out = feval("gcd", in, 1);
std::cout << out(0).int_value() << std::endl;
return 0;
}
else
{
error("Octave interpreter initialization failed");
return 1;
}
}
I run it on visual studio.
The problem is that it fails at the line of octave main,
and at the failing makes it to exit the program.
At the error list on visual studio appears:
'TestOctave3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winnsi.dll'. Cannot find or open the PDB file.
'TestOctave3.exe' (Win32): Loaded 'D:\Octave-3.6.4\lib\octave\3.6.4\oct\i686-pc-mingw32\find.oct'. Module was built without symbols.
'TestOctave3.exe' (Win32): Unloaded 'D:\Octave-3.6.4\lib\octave\3.6.4\oct\i686-pc-mingw32\find.oct'
The thread 0x27ac has exited with code 1 (0x1).
Can you tell me what is the problem and what should be done?
I'll appreciate any help.
Sincerrely,
Koby