help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error while running octave from C++


From: octaveMPI
Subject: Re: Error while running octave from C++
Date: Fri, 6 Jun 2014 02:12:32 -0700 (PDT)

Thanks again for your reply.

I am running Linux Mint 15.

Actually I would have expected I would solve the problem or get at least a
different error after compiling the entire lib with light optimization. I
don't see how compiling only there two files with those options can make a
difference.

Anyway, I found a workaround to the problem.
I now introduced the octave initialization lines into the main program:

string_vector argv (2);
argv(0) = "embedded";
argv(1) = "-q";
octave_main (2, argv.c_str_vec (), 1); 

Then when I run my plugin as shared object, octave already has been
initialized and it runs without problem.

However, this solution comes with downsides, as I now need octave when I
build/run my main program.
I might try the compiling without optimization option in the future or if
somebody has another solution to the problem that would be helpful let me
know :)

Best Regards.




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Error-while-running-octave-from-C-tp4664113p4664517.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]