[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building 2.1.40 on cygwin with --enable-shared --enable-dl
From: |
Andy Adler |
Subject: |
Re: Building 2.1.40 on cygwin with --enable-shared --enable-dl |
Date: |
Sat, 23 Nov 2002 23:06:33 -0500 (EST) |
On Fri, 22 Nov 2002, John W. Eaton wrote:
> On 22-Nov-2002, Andy Adler <address@hidden> wrote:
> | I'm having trouble building 2.1.40 on cygwin with --enable-shared
> | and --enable-dl.
>
> Please try the following patch and let me know if it solves the
> problem.
This patch does solve the problem. Octave compiles and installes,
however:
1. Compiling with gcc 2.95 doesn't seem to like std::bad_alloc
(in libcruft/misc/quit.h). I removed it to get it to compile.
2. mkoctfile doesn't seem to link.
address@hidden /usr/src/octave-2.1.40/examples
$ mkoctfile -v hello.cc
g++ -c -I/usr/include/octave-2.1.40 -I/usr/include/octave-2.1.40/octave
-I/usr/include -mieee-fp -fno-implicit-templates -g -O2 -Wall hello.cc -o
hello.o
g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -o hello.oct
hello.o -L/usr/lib/octave-2.1.40 -loctave.dll -lcruft.dll -loctinterp.dll
hello.o: In function `FShello_gnu_v2':
/usr/src/octave-2.1.40/examples/hello.cc:67: undefined reference to
`check_version(basic_string<char, string_char_traits<char>,
__default_alloc_template<false,0> > const &, basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &)'
/usr/src/octave-2.1.40/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 &, octave_shlib const &, basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> > const &, bool)'
/usr/src/octave-2.1.40/examples/hello.cc:68: undefined reference to
`error_state'
hello.o: In function `Fhello(octave_value_list const &, int)':
/usr/include/octave-2.1.40/octave/oct-obj.h:44: undefined reference to
`Array<octave_value>::~Array(void)'
[snip]
Thanks
Andy
-------------------------------------------------------------
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
-------------------------------------------------------------