error: feval: function 'pkg.m' not found

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

error: feval: function 'pkg.m' not found

ashwin damle
Hi Support,

Could you please help me with this? I execute the script embedded.cc from https://octave.org/doc/v4.4.0/Standalone-Programs.html as is with added line of  octave::feval ("pkg.m", ovl ("load", "control"), 0);  to load the control package. The executable is generated but on execution I get the error

"
error: feval: function 'pkg.m' not found
error encountered in Octave evaluator!

"
The reference used for the package load line is http://octave.1599824.n4.nabble.com/Use-package-in-standalone-programs-td4686221.html where in a interval package is loaded.

I was using an older version of Octave before but now I am running 
GNU Octave 4.4.0 on Windows-10 64 bit.

Attached is the embedded.cc file I am using. Before running mkoctfile in the command window the environment variable is to be set using setenv('OCTAVE_LINK_DEPS', " -liconv"). I have given reference in the .cc file.

I was wanting to execute use this in the latest Octave. Could you please help?

Thanks,
Ashwin Damle



embedded.cc (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error: feval: function 'pkg.m' not found

Doug Stewart-4


On Sun, Jul 29, 2018 at 7:51 AM, ashwin damle <[hidden email]> wrote:
Hi Support,

Could you please help me with this? I execute the script embedded.cc from https://octave.org/doc/v4.4.0/Standalone-Programs.html as is with added line of  octave::feval ("pkg.m", ovl ("load", "control"), 0);  to load the control package. The executable is generated but on execution I get the error

"
error: feval: function 'pkg.m' not found
error encountered in Octave evaluator!

"
The reference used for the package load line is http://octave.1599824.n4.nabble.com/Use-package-in-standalone-programs-td4686221.html where in a interval package is loaded.

I was using an older version of Octave before but now I am running 
GNU Octave 4.4.0 on Windows-10 64 bit.

Attached is the embedded.cc file I am using. Before running mkoctfile in the command window the environment variable is to be set using setenv('OCTAVE_LINK_DEPS', " -liconv"). I have given reference in the .cc file.

I was wanting to execute use this in the latest Octave. Could you please help?

Thanks,
Ashwin Damle


did you try:
  octave::feval ("pkg", ovl ("load", "control"), 0); 



--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: error: feval: function 'pkg.m' not found

ashwin damle
Hello,

Yes, I tried with octave::feval ("pkg", ovl ("load", "control"), 0); It does not work.

In order to try one or other option, I tried "pkg.m" and mistakenly sent the same file - "pkg.m" nor "pkg" works.

Did it work for you?

Please let me know.

Thanks,

On Sun, 29 Jul 2018 at 18:19, Doug Stewart <[hidden email]> wrote:


On Sun, Jul 29, 2018 at 7:51 AM, ashwin damle <[hidden email]> wrote:
Hi Support,

Could you please help me with this? I execute the script embedded.cc from https://octave.org/doc/v4.4.0/Standalone-Programs.html as is with added line of  octave::feval ("pkg.m", ovl ("load", "control"), 0);  to load the control package. The executable is generated but on execution I get the error

"
error: feval: function 'pkg.m' not found
error encountered in Octave evaluator!

"
The reference used for the package load line is http://octave.1599824.n4.nabble.com/Use-package-in-standalone-programs-td4686221.html where in a interval package is loaded.

I was using an older version of Octave before but now I am running 
GNU Octave 4.4.0 on Windows-10 64 bit.

Attached is the embedded.cc file I am using. Before running mkoctfile in the command window the environment variable is to be set using setenv('OCTAVE_LINK_DEPS', " -liconv"). I have given reference in the .cc file.

I was wanting to execute use this in the latest Octave. Could you please help?

Thanks,
Ashwin Damle


did you try:
  octave::feval ("pkg", ovl ("load", "control"), 0); 



--
DASCertificate for 206392



--
Ashwin Damle


Reply | Threaded
Open this post in threaded view
|

Re: error: feval: function 'pkg.m' not found

Doug Stewart-4


On Sun, Jul 29, 2018 at 9:58 AM, ashwin damle <[hidden email]> wrote:
Hello,

Yes, I tried with octave::feval ("pkg", ovl ("load", "control"), 0); It does not work.

In order to try one or other option, I tried "pkg.m" and mistakenly sent the same file - "pkg.m" nor "pkg" works.

Did it work for you?
yes it does!

 mkoctfile --link-stand-alone embedded.cc -o embedded
doug@dougsp2:~$ ./embedded
warning: function ./erase.m shadows a core library function
GCD of [10, 15] is 5
doug@dougsp2:~$ 




 

Please let me know.

Thanks,

On Sun, 29 Jul 2018 at 18:19, Doug Stewart <[hidden email]> wrote:


On Sun, Jul 29, 2018 at 7:51 AM, ashwin damle <[hidden email]> wrote:
Hi Support,

Could you please help me with this? I execute the script embedded.cc from https://octave.org/doc/v4.4.0/Standalone-Programs.html as is with added line of  octave::feval ("pkg.m", ovl ("load", "control"), 0);  to load the control package. The executable is generated but on execution I get the error

"
error: feval: function 'pkg.m' not found
error encountered in Octave evaluator!

"
The reference used for the package load line is http://octave.1599824.n4.nabble.com/Use-package-in-standalone-programs-td4686221.html where in a interval package is loaded.

I was using an older version of Octave before but now I am running 
GNU Octave 4.4.0 on Windows-10 64 bit.

Attached is the embedded.cc file I am using. Before running mkoctfile in the command window the environment variable is to be set using setenv('OCTAVE_LINK_DEPS', " -liconv"). I have given reference in the .cc file.

I was wanting to execute use this in the latest Octave. Could you please help?

Thanks,
Ashwin Damle


did you try:
  octave::feval ("pkg", ovl ("load", "control"), 0); 



--
DAS



--
Ashwin Damle



--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: error: feval: function 'pkg.m' not found

ashwin damle
Hello,

Is there anyone else who faces the same problem on Windows 10 64 bit on GNU Octave 4.4.0?

Please let me know if you find a solution.

Ashwin

On Mon, 30 Jul 2018 at 16:43, Doug Stewart <[hidden email]> wrote:


On Mon, Jul 30, 2018 at 4:09 AM, ashwin damle <[hidden email]> wrote:
Hi Doug,

Thanks for your email. 

I am using Windows 10, GNU Octave version 4.4.0 and it does not work. May be there is something which I cannot figure out. Which Windows are you using? It works on my xubuntu xenial 64-bit.

Let me know if there is anything I can do to solve this problem.

Thanks,
Ashwin


I am using Ubuntu16.04



 

On Sun, 29 Jul 2018 at 21:29, Doug Stewart <[hidden email]> wrote:


On Sun, Jul 29, 2018 at 9:58 AM, ashwin damle <[hidden email]> wrote:
Hello,

Yes, I tried with octave::feval ("pkg", ovl ("load", "control"), 0); It does not work.

In order to try one or other option, I tried "pkg.m" and mistakenly sent the same file - "pkg.m" nor "pkg" works.

Did it work for you?
yes it does!

 mkoctfile --link-stand-alone embedded.cc -o embedded
doug@dougsp2:~$ ./embedded
warning: function ./erase.m shadows a core library function
GCD of [10, 15] is 5
doug@dougsp2:~$ 




 

Please let me know.

Thanks,

On Sun, 29 Jul 2018 at 18:19, Doug Stewart <[hidden email]> wrote:


On Sun, Jul 29, 2018 at 7:51 AM, ashwin damle <[hidden email]> wrote:
Hi Support,

Could you please help me with this? I execute the script embedded.cc from https://octave.org/doc/v4.4.0/Standalone-Programs.html as is with added line of  octave::feval ("pkg.m", ovl ("load", "control"), 0);  to load the control package. The executable is generated but on execution I get the error

"
error: feval: function 'pkg.m' not found
error encountered in Octave evaluator!

"
The reference used for the package load line is http://octave.1599824.n4.nabble.com/Use-package-in-standalone-programs-td4686221.html where in a interval package is loaded.

I was using an older version of Octave before but now I am running 
GNU Octave 4.4.0 on Windows-10 64 bit.

Attached is the embedded.cc file I am using. Before running mkoctfile in the command window the environment variable is to be set using setenv('OCTAVE_LINK_DEPS', " -liconv"). I have given reference in the .cc file.

I was wanting to execute use this in the latest Octave. Could you please help?

Thanks,
Ashwin Damle


did you try:
  octave::feval ("pkg", ovl ("load", "control"), 0); 



--
DAS



--
Ashwin Damle



--
DASCertificate for 206392



--
Ashwin Damle



--
DASCertificate for 206392



--
Ashwin Damle