@TheIdeasMan, sphere_perspective.cpp is a file name |
The reason I asked, is that you had
public : void legendreTransform (...){}
so that must be part of a class definition; there was a brace, so the function definition must be implicitly inline. But it is much better to split the files into .hpp and .cpp files. From what I can see, there seems to be too much going on inside
sphere_perspective.cpp
Why do you
#include
a C file? Should only include header files, split them up too.
using namespace std;
isn't recommended either.
It shows that "complex.h" is included but it is a "private complex.h" This file is here: |
By "private complex.h" , do you mean that is another library implementation, not the STL one? I would be inclined to put all the LIBROW stuff into it's own namespace, then you can scope it. That might help the confusion below. Consider putting your own code in it's own namespace as well.
If I include this statement: #include <complex.h> among other headers in sphere_perspective.cpp file the typedef std::complex<double> dcomp; statement compiles but it messes up lines and lines of my other code (Librow FFT routines). I copied Librow FFT source code and have used it before extensively. This is the website for Librow FFT: |
If you want
std::complex
, you need
#include <complex>
, not
#include <complex.h>
which might find the LIBROW complex header file, or a different C implementation. Use quotes for anything other than standard include files.
file gauss_legendre.c does not have complex numbers, only double. |
But why do you now want to use
std::complex
? The LIBROW is expecting
their complex class, hence the messing up of the Librow FFT routines, when you use
std::complex
? What does the
gauss_legendre.c
file look like? Will have to figure out how to interface with that.
Maybe you can upload your entire project to a hosting service, like github or similar? If not willing to make it public, PM me the link to it. I could have a go, and see what happens :+) It might take a day or two, it's 04:40 at this end, and I have a thing to do Sunday Arvo.
Regards :+)