[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]
In case it is relevant, i am using fedora 16 x64_86.
I can't even find documentation for that class, but it is form the random number generator i wish to use, so i'm kinda flying by the seat of my pants here.
I looked around some more, and I have no idea whatsoever how to fix this. It's most likely just some simple thing, but I just can't seem to figure it out. Any help is appreciated.