[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unknown symbol
From: |
Geraint Paul Bevan |
Subject: |
Re: unknown symbol |
Date: |
Fri, 15 Aug 2003 19:39:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
E2 wrote:
| On Fri, Aug 15, 2003 at 03:56:27PM +0100, Geraint Paul Bevan wrote:
|
|>-----BEGIN PGP SIGNED MESSAGE-----
|>Hash: SHA1
|>
|>E2 wrote:
|>| more details:
|>|
|>
|>
|>Is there a sausage_tree.c as well?
|>
|
|
| I'm held under contract not to release it :-( would it help if I wrote
| you some fake functions that compiled? I think it's a linking problem
anyhow..
Not necessarily a problem.
I've written a dummy sausage_tree.c (just returns a null pointer).
sausage_tree.c:
#include "sausage_tree.h"
s_node *s_node_new(double offset, double range, s_node *parental)
{
~ return 0x0;
}
The command "mkoctfile opt_sausage.cc sausage_tree.c" then worked
(I changed string to std::string in opt_sausage.cc for g++ 3.3.1):
address@hidden:~/sausage$ ls
declares.h opt_sausage.cc* sausage_tree.c* sausage_tree.h
address@hidden:~/sausage$ mkoctfile opt_sausage.cc sausage_tree.c
address@hidden:~/sausage$ ls
declares.h opt_sausage.o sausage_tree.c* sausage_tree.o
opt_sausage.cc* opt_sausage.oct* sausage_tree.h
address@hidden:~/sausage$ octave
GNU Octave, version 2.1.50 (i386-pc-linux-gnu).
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Report bugs to <address@hidden>.
octave:1> opt_sausage
row vector length3
this is what I got OV_1: 1
this is what I got valu2: 1
ans = 1
Does this work for you?
- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iEYEARECAAYFAj89KO0ACgkQcXV3N50QmNNjDACeI5JVLpEoCIMViIucXFXyItb9
HmgAoItBEh0KIw+3xznwYCH+mrJJfKpO
=+M7y
-----END PGP SIGNATURE-----
-------------------------------------------------------------
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
-------------------------------------------------------------