[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using ANSI C++ std lib templates with mkoctfile
From: |
Trond Karsten Varslot |
Subject: |
Re: Using ANSI C++ std lib templates with mkoctfile |
Date: |
Wed, 5 Jul 2000 11:55:51 +0200 (MET DST) |
> I'm trying to compile an external function to octave (2.0.16, on
> linuxppc, latest g++), which uses the std::vector class. mkoctfile
> works fine and in the octave shell I get:
>
> octave: error in loading shared libraries:
> /home/paris/octave/src/hall.oct: undefined symbol:
> fill_n__H3ZPdZUiZd_X01X11RCX21_X01
Hei,
I got the same error message when I wrote an implementation of imread for
octave, using Imlib. The problem was that I had forgot to link with the
correct libraries. The options '-ljpeg -ltiff, ...' to mkoctfile solved my
problem. Maybe you could try something like 'mkoctfile -lstd yourfile.cc'.
As you might have gathered, I am not that clever with compiler flags and
options:(
-Trond.
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------