[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to write a c++ application using cygwin?
From: |
Søren Hauberg |
Subject: |
Re: How to write a c++ application using cygwin? |
Date: |
Fri, 03 Feb 2006 10:35:52 +0100 |
Hi,
I don't really know how things work in cygwin, but a quick tutorial on
how to write octave extensions in C++ can be found at
http://octave.sourceforge.net/coda/
There is more recent version somewhere, but I can't remember where.
But are you sure you need to write your program in C++? The octave
language is so much more friendly.
/Søren
fre, 03 02 2006 kl. 09:13 +0100, skrev Hermann Schloss:
> Hello everyone,
>
>
>
> I’d like to rephrase my question from few days ago.
>
>
>
> For my master thesis I have to write a c++ application solving Linear
> Least Squares Problems with Inequality and Equality constraints (LSI,
> LSE, LSIE) so I need much more than, just to invert a matrix (SVD; QR
> (UPDATE), Givens,...).
>
>
>
> I installed cygwin and octave on my pc according to READMY.Windows
> directions from John W. Eaton.
>
>
>
> The question now is, how can I create an application (for example see
> below) using octave under cygwin?
>
>
>
> #include <iostream>
>
> #inlcude <octave/config.h>
>
> #include <octave/Matrix>
>
>
>
> using namespace std;
>
>
>
> int main()
>
> {
>
> Matrix m = (3,2);
>
> // filling the matrix
>
> Matrix n = m.inverse();
>
> cout << n;
>
> return 0;
>
> }
>
>
>
> How would I compile this application? What should I link during
> compilation? Can I also create Windows .exe files with cygwin?
>
>
>
> Please give me some hints.
>
>
>
> Thanks a million
>
>
>
> 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
-------------------------------------------------------------