help-octave
[Top][All Lists]
Advanced

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

Re: Octave/C++


From: Mike Morley
Subject: Re: Octave/C++
Date: 22 Jul 2005 14:25:59 +0100

On Jul 22 2005, Andrey Romanenko wrote:
Is robot_link implemented in pure C? Then you need to declare a propotype
inside
extern "C" {   };

Andrey

I tried adding that, so Bot.cpp now reads:

//Start of Bot.cpp

#include<iostream>
#include<octave/oct.h>
#include<octave/dynamic-ld.h>
#include<string>

using namespace std;

extern "C" {
 #include "robot_instr.h"
 #include "robot_link.h"
}

class Bot: public octave_base_value
{
public:
 //constructor
 Bot(void): octave_base_value()
 {
   robot_link robot;
 }
};



 DEFUN_DLD(BotMake,,,
            "BotMake creates a new robot to link in to")
{
 Bot *b = new Bot();
 return octave_value(b);
}

//End of Bot.cpp

But I still get the symbol lookup error in octave when I type BotMake()

Can anyone help?



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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