[Top][All Lists]

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

question: DLD write and debug

From: Eric Chassande-Mottin
Subject: question: DLD write and debug
Date: Fri, 16 Apr 2004 20:35:16 +0200 (CEST)

hi all,

two questions about DLD C++ writing and debugging.

1) in gdb, how do get the values of a vector (ColumnVector or RowVector)

or of a Matrix when I am debugging a DLD?

ColumnVector x(10);

i tried

print x
print x(1)

but I can only get the address pointing on the struct.

2) what happens if I declare C++ (not Octave) global variables in a DLD?

i.e., if I declare a variable _before_ starting any function, like:

static double x=0.0;

DEFUN_DLD (foo, args, ,

can I realibly use x in all functions declared in the file?

or should I avoid that? (if yes, why?)

does that interfere with Octave's workspace ?

thanks, é.

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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