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: Andy Adler
Subject: Re: Building 2.1.40 on cygwin with --enable-shared --enable-dl
Date: Thu, 5 Dec 2002 22:17:42 -0500 (EST)

John W. Eaton wrote:
> On 23-Nov-2002, Andy Adler <address@hidden> wrote:
> | 2. mkoctfile doesn't seem to link.
> |
> | address@hidden /usr/src/octave-2.1.40/examples
> | $ mkoctfile -v hello.cc
> |
> | 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>,
>
> 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.

I incorrectly diagnosed the problem. The error I sent was
common to gcc-2.95 and gcc-3.2. The problem occurs if the windows
loader libraries in /usr/lib/octave-2.1.40 are stripped
( as in make install-strip ).

Note that the various dll's and the octave executable can be
stripped without issue.

Example:
address@hidden /usr/src/octave-2.1.40-dynlink/examples
$ mkoctfile hello.cc

$ strip /usr/lib/octave-2.1.40/*.a
$ mkoctfile hello.cc
hello.o(.text+0x14e): In function `FShello_gnu_v3':
/usr/include/c++/3.2/bits/stl_alloc.h:630: undefined reference to
`check_version (std::basic_string<char, std::char_traits<char>, ...

There are still some gcc-2.95 problems. I will send those in a
separate message (because they're on another machine)

Andy
--
Andy Adler,
Assistant Professor, School of Information Technology and Engineering,
University of Ottawa, Tel:1(613)562-5800 X 2345, Email:address@hidden





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