I also find the package extremely interresting but could not get it to build with gcc 3.0
Here a compile result:
g++ -Wno-non-template-friend -c sim_qpsk.cpp -I../functions -I../generic -I../specializations
In file included from sim_qpsk.h:24,
from sim_qpsk.cpp:22:
../generic/complex.h:440: parse error before `sizeof'
../generic/complex.h:444: parse error before `>' token
../generic/complex.h:445: parse error before `>' token
../generic/complex.h:450: syntax error before `(' token
../generic/complex.h:450: `complex' was not declared in this scope
../generic/complex.h:450: `T' was not declared in this scope
../generic/complex.h:450: `x' was not declared in this scope
../generic/complex.h:451: ISO C++ forbids declaration of `reciprocal' with no
type
../generic/complex.h:451: syntax error before `{' token
../generic/complex.h:453: ISO C++ forbids declaration of `y' with no type
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:454: parse error before `return'
../generic/complex.h:457: syntax error before `(' token
../generic/complex.h:457: `complex' was not declared in this scope
../generic/complex.h:457: `T' was not declared in this scope
../generic/complex.h:457: `x' was not declared in this scope
../generic/complex.h:458: ISO C++ forbids declaration of `sqr' with no type
../generic/complex.h:458: syntax error before `{' token
../generic/complex.h:462: syntax error before `(' token
../generic/complex.h:462: `complex' was not declared in this scope
../generic/complex.h:462: `T' was not declared in this scope
../generic/complex.h:462: `x' was not declared in this scope
../generic/complex.h:463: ISO C++ forbids declaration of `csqrt' with no type
../generic/complex.h:463: syntax error before `{' token
../generic/complex.h:465: `x' was not declared in this scope
../generic/complex.h:465: `arg' was not declared in this scope
../generic/complex.h:466: parse error before `return'
../generic/complex.h:469: syntax error before `(' token
../generic/complex.h:474: `complex' was not declared in this scope
../generic/complex.h:474: parse error before `>' token
../generic/complex.h: In function `double hypot(...)':
../generic/complex.h:476: `z' undeclared (first use this function)
../generic/complex.h:476: (Each undeclared identifier is reported only once for
each function it appears in.)
../generic/complex.h: At global scope:
../generic/complex.h:477: parse error before `}' token
In file included from quad_data.h:31,
from sim_qpsk.h:29,
from sim_qpsk.cpp:22:
../functions/raised_cosine.h:25:1: warning: no newline at end of file
make: *** [sim_qpsk.o] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
This package looks very interesting. However, I cannot get the qpsk project it to compile under gcc, mvc (6.0), or borland (builder4).
In particular borland and mvc give a similar error about cmplx_allpass_halfband.h. gcc has lots of errors that i have not sifted through.
Here is the error message from borland:
[C++ Error] cmplx_allpass_halfband.h(30): E2102 Cannot use template 'allpass_halfband<Numeric>' without specifying specialization parameters.
Rather than try to alter the code, I would prefer at this point just to find out what environment is has been tested in. If gcc, what version?
-Brian
These problems should now be fixed in the new update 2.0.1
I also find the package extremely interresting but could not get it to build with gcc 3.0
Here a compile result:
g++ -Wno-non-template-friend -c sim_qpsk.cpp -I../functions -I../generic -I../specializations
In file included from sim_qpsk.h:24,
from sim_qpsk.cpp:22:
../generic/complex.h:440: parse error before `sizeof'
../generic/complex.h:444: parse error before `>' token
../generic/complex.h:445: parse error before `>' token
../generic/complex.h:450: syntax error before `(' token
../generic/complex.h:450: `complex' was not declared in this scope
../generic/complex.h:450: `T' was not declared in this scope
../generic/complex.h:450: `x' was not declared in this scope
../generic/complex.h:451: ISO C++ forbids declaration of `reciprocal' with no
type
../generic/complex.h:451: syntax error before `{' token
../generic/complex.h:453: ISO C++ forbids declaration of `y' with no type
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:453: `x' was not declared in this scope
../generic/complex.h:454: parse error before `return'
../generic/complex.h:457: syntax error before `(' token
../generic/complex.h:457: `complex' was not declared in this scope
../generic/complex.h:457: `T' was not declared in this scope
../generic/complex.h:457: `x' was not declared in this scope
../generic/complex.h:458: ISO C++ forbids declaration of `sqr' with no type
../generic/complex.h:458: syntax error before `{' token
../generic/complex.h:462: syntax error before `(' token
../generic/complex.h:462: `complex' was not declared in this scope
../generic/complex.h:462: `T' was not declared in this scope
../generic/complex.h:462: `x' was not declared in this scope
../generic/complex.h:463: ISO C++ forbids declaration of `csqrt' with no type
../generic/complex.h:463: syntax error before `{' token
../generic/complex.h:465: `x' was not declared in this scope
../generic/complex.h:465: `arg' was not declared in this scope
../generic/complex.h:466: parse error before `return'
../generic/complex.h:469: syntax error before `(' token
../generic/complex.h:474: `complex' was not declared in this scope
../generic/complex.h:474: parse error before `>' token
../generic/complex.h: In function `double hypot(...)':
../generic/complex.h:476: `z' undeclared (first use this function)
../generic/complex.h:476: (Each undeclared identifier is reported only once for
each function it appears in.)
../generic/complex.h: At global scope:
../generic/complex.h:477: parse error before `}' token
In file included from quad_data.h:31,
from sim_qpsk.h:29,
from sim_qpsk.cpp:22:
../functions/raised_cosine.h:25:1: warning: no newline at end of file
make: *** [sim_qpsk.o] Error 1