cart2pol and external code interface

Fritz Sonnichsen <[email protected]> Thu, 14 Oct 2021 11:06:37 -0400
Newsgroups gmane.comp.gnu.octave.general
Message-ID <CAMxgeAovT_KGY8OxLYFMYD4i6+N8Q=R5mZ=QSn3-NuOdiG94TQ@mail.gmail.com>
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
Fritz
============ERROR MESSAGES =============================
error: ‘cart2pol’ was not declared in this scope
   cart2pol(1,1);
   ^~~~~~~~
..../comp2: line 2: ./octpolar: No such file or directory
======== COMPLETE CODE ===============================
/////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <iostream>
#include<math.h>
#include <iostream>

#include <octave/oct.h>
int
main (void)
{
  //float theta,rho;
  cart2pol(1,1);
  //std::cout << theta;
  //std::cout << rho;
  return 0;
}


----------
We are transitioning to a web based forum
for community help discussions at
https://octave.discourse.group/c/help