problem with inluding lapackpp

B

bufu18

hi all,

I've downloaded (unpack etc) lapckpp library from http://sourceforge.net/projects/lapackpp/

I want to use it but I have problems with including it.

I have included main file \include\lapackpp\lapackpp.h
but compiler says that there is no files aversion.h, f2c.h,
lafnames.h which are in the same directory like lapackpp.h and what
is more funny there are more files which have to be included from the
same place but compiler says about only these 3.

I'm using Code::Blocks and I've tried to change compiler from gcc into
another but the problem is the same. I've checked it in Builder and
the same...

Could anybody try to include it (free soft) maybe I have something
wrong in my settings...


thx
 
V

Victor Bazarov

I've downloaded (unpack etc) lapckpp library from
http://sourceforge.net/projects/lapackpp/

I want to use it but I have problems with including it.

I have included main file \include\lapackpp\lapackpp.h
but compiler says that there is no files aversion.h, f2c.h,
lafnames.h which are in the same directory like lapackpp.h and what
is more funny there are more files which have to be included from the
same place but compiler says about only these 3.

Uh... What do you think we can do?
I'm using Code::Blocks and I've tried to change compiler from gcc into
another but the problem is the same. I've checked it in Builder and
the same...

Well, gcc newsgroup is 'gnu.gcc.help' or 'gnu.g++.help'. Borland C++
Builder also has its own newsgroups, 'borland.public.cppbuilder.*'.
Could anybody try to include it (free soft) maybe I have something
wrong in my settings...

Most likely. But we can't help you with those. You need to ask in
the newsgroup dedicated to your compiler.

V
 
B

bufu18

Most likely. But we can't help you with those. You need to ask in
the newsgroup dedicated to your compiler.


ok I will try I thought that this library should be independent on
compiler especially gcc so I've posted here

thx
 
V

Victor Bazarov

ok I will try I thought that this library should be independent on
compiler especially gcc so I've posted here

The library can be independent (or it can be made to work with only
the chosen compilers), but compilation process problems because of
incorrect settings cannot be compiler-independent. I am not sure I
understand the "especially gcc" part. Regardless of the fact that
the library is a GNU project, if your gcc is not set up correctly
or if you don't provide the necessary commands/settings to it when
compiling the library, you're going to have problems, most likely.
And no C++ language feature can help you overcome those.

Good luck!

V
 
J

John Harrison

hi all,

I've downloaded (unpack etc) lapckpp library from http://sourceforge.net/projects/lapackpp/

I want to use it but I have problems with including it.

I have included main file \include\lapackpp\lapackpp.h
but compiler says that there is no files aversion.h, f2c.h,
lafnames.h which are in the same directory like lapackpp.h and what
is more funny there are more files which have to be included from the
same place but compiler says about only these 3.

I'm using Code::Blocks and I've tried to change compiler from gcc into
another but the problem is the same. I've checked it in Builder and
the same...

Could anybody try to include it (free soft) maybe I have something
wrong in my settings...


thx

Well I think your problem is that you've said something like

#include "include/lapackpp/lapackpp.h"

instead of telling your compiler to look in the include/lapackpp
directory. If you have done that it would have found all the header
files no problem.

But I'm only guessing since you didn't post any code, or explain what
compiler options you did use.

john
 
V

Victor Bazarov

John said:
[.. some good guesses ..]
But I'm only guessing since you didn't post any code, or explain what
compiler options you did use.

Hopefully this is not an invitation to the OP to explain what compiler
options were used. Compiler options are still off-topic here... :)
 
B

bufu18

I am not sure if the problem is in settings because untill today every
program compiles... Also the problem occures in builder. I will try
with #include "include/lapackpp" before it was #include "include/
lapackpp/lapackpp.h"
Could you try too run it on your compiler?
 
V

Victor Bazarov

I am not sure if the problem is in settings because untill today every
program compiles... Also the problem occures in builder. I will try
with #include "include/lapackpp" before it was #include "include/
lapackpp/lapackpp.h"
Could you try too run it on your compiler?

What would that accomplish?
 
?

=?iso-8859-1?q?Erik_Wikstr=F6m?=

hi all,

I've downloaded (unpack etc) lapckpp library fromhttp://sourceforge.net/projects/lapackpp/

I want to use it but I have problems with including it.

I have included main file \include\lapackpp\lapackpp.h
but compiler says that there is no files aversion.h, f2c.h,
lafnames.h which are in the same directory like lapackpp.h and

Very off-topic:
I might be wrong but I think that Lapackpp requires BLAS, which is a
set of matrix/matrix and matrix/vector operations. Originally written
in Fortran but there are C versions of it (some of which are machine-
translates hence the need for f2c.h (Fortran to C)). Check the
Lapackpp documentation, I expect it to mention something about it.
 
J

John Harrison

I am not sure if the problem is in settings because untill today every
program compiles... Also the problem occures in builder. I will try
with #include "include/lapackpp" before it was #include "include/
lapackpp/lapackpp.h"
Could you try too run it on your compiler?

I don't know how much clearer I can be.

You need to use COMPILER SETTINGS to tell your compiler where to find
the files, you don't need to say #include "this" or #include "that".

Sometimes you need different compiler settings to compile different
programs.

john
 
B

bufu18

You need to use COMPILER SETTINGS to tell your compiler where to find
the files, you don't need to say #include "this" or #include "that".

Now it compiles without any code. I've added this directory to
compiler settings.

But still I do not understand to the end why inlcuding FILE from some
directory doesn't work when this FILE needs some other things to work
which are in the same directory as FILE.

thx for help

when I would have problems with using lapckpp where should I post?
 
J

John Harrison

Now it compiles without any code. I've added this directory to
compiler settings.

But still I do not understand to the end why inlcuding FILE from some
directory doesn't work when this FILE needs some other things to work
which are in the same directory as FILE.

That's just the way that compiler works. It may not coincide with your
expectations but that doesn't mean it is wrong. All this stuff is up to
compiler writers to decide, and different compilers do it differently.
thx for help

No problemo

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top