[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++: unrecognized option `-rdynamic'
From: |
Shai Ayal |
Subject: |
Re: g++: unrecognized option `-rdynamic' |
Date: |
Sat, 04 Feb 2006 21:35:42 +0200 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
Hermann,
I tried this at home -- octave 2.1.72 on cygwin, and while I did get the
g++ warning it ran just fine w/o any errors. It displayed the matrix
values and exited normally.
So, the two things you can do here are:
1. Give us a better description of your system (octave version, OS, did
you compile or install from a package ...)
2. run gdb on your app:
gdb ./hello
run
bt
and see where the segfault is exactly. report the output here.
BTW, I seem to recall you are using cygwin. If you compiled octave from
source yourself and used a gcc version greater than 3.3.3 than it might
explain your problem -- I would recommend installing gcc-3.3.3 and the
prepackaged octave for cygwin using the cygwin setup program - this is
what works for me.
Shai
Hermann Schloss wrote:
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------