help-octave
[Top][All Lists]
Advanced

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

Can't get mkoctfile to run under Cygwin


From: Steve Goncalo
Subject: Can't get mkoctfile to run under Cygwin
Date: Tue, 11 Sep 2001 14:46:11 -0400

I can get Octave to compile and run under cygwin (1.3.2-1 w/ gcc 2.95.3-5),
but I can not get the mkoctfile command to build the hello.cc example. I've
tried with both the 2.0.16 "stable" build and with 2.1.34 and got similar
results. I put a "set -x" command in the mkoctfile script and convinced
myself I was compiling OK and the problem was in the link.

internally, the script is linking with the command:
c++ -shared -o hello.oct hello.o

I tried adding -L/usr/local/lib/octave and -l's with the three libs in that
area, but that only made matters worse.

Am I doing something wrong, or is the .oct interface broken under Cygwin?

$ mkoctfile hello.cc
hello.o: In function `FShello(octave_shlib const &)':
/cygdrive/c/octave-2.1.34/examples/hello.cc:67: undefined reference to
`check_ve
rsion(basic_string<char, string_char_traits<char>,
__default_alloc_template<fals
e, 0> > const &, basic_string<char, string_char_traits<char>,
__default_alloc_te
mplate<false, 0> > const &)'
/cygdrive/c/octave-2.1.34/examples/hello.cc:68: undefined reference to
`install_
dld_function(octave_value_list (*)(octave_value_list const &, int),
basic_string
<char, string_char_traits<char>, __default_alloc_template<false, 0> > const
&, o
ctave_shlib const &, basic_string<char, string_char_traits<char>,
__default_allo
c_template<false, 0> > const &, bool)'
/cygdrive/c/octave-2.1.34/examples/hello.cc:68: undefined reference to
`error_st
ate'
hello.o: In function `Fhello(octave_value_list const &, int)':
/usr/local/include/octave-2.1.34/octave/oct-obj.h:44: undefined reference to
`Ar
ray<octave_value>::~Array(void)'
hello.o: In function `Fhello(octave_value_list const &, int)':
/cygdrive/c/octave-2.1.34/examples/hello.cc:79: undefined reference to
`octave_p
ager_stream::stream(void)'
/cygdrive/c/octave-2.1.34/examples/hello.cc:92: undefined reference to
`octave_v
alue::~octave_value(void)'
/cygdrive/c/octave-2.1.34/examples/hello.cc:93: undefined reference to
`octave_p
ager_stream::stream(void)'
/cygdrive/c/octave-2.1.34/examples/hello.cc:94: undefined reference to
`octave_v
alue::~octave_value(void)'

... two or three screens of similar undefined references follow.




-------------------------------------------------------------
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]