help-octave
[Top][All Lists]
Advanced

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

cart2pol and external code interface


From: Fritz Sonnichsen
Subject: cart2pol and external code interface
Date: Thu, 14 Oct 2021 11:06:37 -0400

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;
}


reply via email to

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