[natman3400@nathan pixl]$ g++ main.cc -o main -lcryptopp
In file included from main.cc:8:0:
isaac.hpp: In member function ‘virtualvoid QTIsaac<ALPHA, T>::randinit(QTIsaac<ALPHA, T>::randctx*, bool)’:
isaac.hpp:162:14: error: name lookup of ‘i’ changed for ISO ‘for’ scoping [-fpermissive]
isaac.hpp:162:14: note: (if you use ‘-fpermissive’ G++ will accept your code)
trying -fpermissive gives me this:
1 2 3 4 5
[natman3400@nathan pixl]$ g++ main.cc -o main -lcryptopp -fpermissive
In file included from main.cc:8:0:
isaac.hpp: In member function ‘virtualvoid QTIsaac<ALPHA, T>::randinit(QTIsaac<ALPHA, T>::randctx*, bool)’:
isaac.hpp:162:14: warning: name lookup of ‘i’ changed for ISO ‘for’ scoping [-fpermissive]
isaac.hpp:153:15: warning: using obsolete binding at ‘i’ [-fpermissive]
This makes me suspect i might have a problem with my g++, as it is not building(or at least not saving the file where i tell it too), ill try re-installing it.
No I am on my laptop, and a different problem is arising:
/home/natman3400/cpp/res/isaac.hpp:80:60: error: ‘NULL’ was not declared in this scope
/home/natman3400/cpp/res/isaac.hpp: In constructor ‘QTIsaac<ALPHA, T>::randctx::randctx()’:
/home/natman3400/cpp/res/isaac.hpp:57:27: error: ‘::malloc’ has not been declared
/home/natman3400/cpp/res/isaac.hpp:58:27: error: ‘::malloc’ has not been declared
/home/natman3400/cpp/res/isaac.hpp: In destructor ‘QTIsaac<ALPHA, T>::randctx::~randctx()’:
/home/natman3400/cpp/res/isaac.hpp:63:13: error: ‘::free’ has not been declared
/home/natman3400/cpp/res/isaac.hpp:64:13: error: ‘::free’ has not been declared
/home/natman3400/cpp/res/isaac.hpp: In member function ‘virtual void QTIsaac<ALPHA, T>::srand(T, T, T, T*)’:
/home/natman3400/cpp/res/isaac.hpp:117:33: error: ‘NULL’ was not declared in this scope
/home/natman3400/cpp/res/isaac.hpp: In member function ‘virtual void QTIsaac<ALPHA, T>::randinit(QTIsaac<ALPHA, T>::randctx*, bool)’:
/home/natman3400/cpp/res/isaac.hpp:162:14: error: name lookup of ‘i’ changed for ISO ‘for’ scoping [-fpermissive]
/home/natman3400/cpp/res/isaac.hpp:162:14: note: (if you use ‘-fpermissive’ G++ will accept your code)
I have a feeling that this is something i am just missing due to my being new to c++