[Top][All Lists]

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

Re: cart2pol and external code interface

From: Markus Mützel
Subject: Re: cart2pol and external code interface
Date: Thu, 14 Oct 2021 17:59:29 +0200

I'm assuming you would like to write a standalone program in C++ that calls Octave. Is this correct?
If this is the case, take a look at appendix A.3 Standalone Programs of the Octave manual:
Standalone Programs (GNU Octave (version 6.3.0))
It includes an example that calls the Octave function "gcd".
Calling "cart2pol" instead should work similarly.
Gesendet: Donnerstag, 14. Oktober 2021 um 17:06 Uhr
Von: "Fritz Sonnichsen" <>
Betreff: cart2pol and external code interface
I have octave running just fine on my ubuntu 16.xx machine. I also ran the octave demo program for calling octave from C++ (external code interface) and this did the Matrix algebra just fine.
  Now I need to run "cart2pol"  but I get "  but I get the errors below:
Any ideas appreciated
============ERROR MESSAGES =============================
error: ‘cart2pol’ was not declared in this scope
..../comp2: line 2: ./octpolar: No such file or directory
======== COMPLETE CODE ===============================
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <iostream>
#include <iostream>

#include <octave/oct.h>
main (void)
  //float theta,rho;
  //std::cout << theta;
  //std::cout << rho;
  return 0;
---------- We are transitioning to a web based forum for community help discussions at

reply via email to

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