help-octave
[Top][All Lists]
Advanced

[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: John W. Eaton
Subject: Re: Building 2.1.40 on cygwin with --enable-shared --enable-dl
Date: Sun, 24 Nov 2002 23:43:40 -0600

On 23-Nov-2002, Andy Adler <address@hidden> wrote:

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

Can you send a copy of the error message?  It doesn't seem to be a
problem for 2.95 on my Debian system.

| 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)'

I have upgraded my Cygwin system to use gcc 3.2 so I did not try to
reproduce this problem with gcc 2.95.  With 3.2, everything seems to
work properly with the current sources from CVS, and I can use
mkoctfile to build .oct files.

jwe



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