[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
g++: unrecognized option `-rdynamic'
From: |
Hermann Schloss |
Subject: |
g++: unrecognized option `-rdynamic' |
Date: |
Sat, 04 Feb 2006 19:20:22 +0000 |
Hi everyone,
compiling a simple standalone application (as recommended by Stefan van der
Walt and Søren Hauberg (thak you gays))
#include <iostream>
#include "oct.h"
int
main(void)
{
std::cout << "Hello Octave world!\n";
const int size = 2;
Matrix a_matrix = Matrix(size, size);
for (int row = 0; row < size; ++row)
{
for (int column = 0; column < size; ++column)
{
a_matrix(row, column) = (row + 1)*10 + (column + 1);
}
}
std::cout << a_matrix;
return 0;
}
with:
$ mkoctfile --link-stand-alone -v hello.cc -o hello leads to a warning:
g++: unrecognized option `-rdynamic'
and executing this application leads to the following output:
$ ./hello
Hello Octave world!
Segmentation fault (core dumped)
Does anyone have an idea how can I get rid of this errors?
Thank you
Hermann
-------------------------------------------------------------
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
-------------------------------------------------------------
- g++: unrecognized option `-rdynamic',
Hermann Schloss <=