Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » StreamCypher
StreamCypher [message #56522] Sun, 21 March 2021 06:30 Go to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Linux, Clang:

/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: error: definition or redeclaration of 'String' not allowed inside a function
                Snow2 S(key);
                      ^~~~~~
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                ~~~~~^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: error: no member named 'String' in namespace 'Upp'
                Snow2 S(key);
                      ^~~~~~
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                ~~~~~^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:89:8: error: use of undeclared identifier 'S'
                        d = S.Encode(s);
                            ^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:99:5: error: must use 'class' tag to refer to type 'String' in this scope
                                String ss = s.Left(rnd);
                                ^
                                class 
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: note: class 'String' is hidden by a non-type declaration of 'String' here
                Snow2 S(key);
                      ^
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                     ^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:102:10: error: use of undeclared identifier 'S'
                                d += S.Encode(ss);
                                     ^


Regards,
Novo
Re: StreamCypher [message #56587 is a reply to message #56522] Fri, 26 March 2021 16:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
Novo wrote on Sun, 21 March 2021 06:30
Linux, Clang:

/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: error: definition or redeclaration of 'String' not allowed inside a function
                Snow2 S(key);
                      ^~~~~~
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                ~~~~~^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: error: no member named 'String' in namespace 'Upp'
                Snow2 S(key);
                      ^~~~~~
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                ~~~~~^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:89:8: error: use of undeclared identifier 'S'
                        d = S.Encode(s);
                            ^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:99:5: error: must use 'class' tag to refer to type 'String' in this scope
                                String ss = s.Left(rnd);
                                ^
                                class 
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:85:9: note: class 'String' is hidden by a non-type declaration of 'String' here
                Snow2 S(key);
                      ^
/home/buildbot/worker/l-upphub-StreamCypher/build/Functions4U/Functions4U/Functions4U.h:1013:19: note: expanded from macro 'S'
#define S(y)    Upp::String(y)
                     ^
/home/buildbot/worker/l-upphub-StreamCypher/build/StreamCypher/examples/StreamCypherTest/StreamCypherTest.cpp:102:10: error: use of undeclared identifier 'S'
                                d += S.Encode(ss);
                                     ^


Yeah, because it is a superb idea to do (in Functions4U.h)

#define S(y) String(u)

....

Deleting that fixed the issue
Re: StreamCypher [message #56591 is a reply to message #56587] Fri, 26 March 2021 18:15 Go to previous message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Fixed. Thanks!

Regards,
Novo
Previous Topic: Update from Anboto
Next Topic: Updater
Goto Forum:
  


Current Time: Thu Oct 21 06:49:45 CEST 2021

Total time taken to generate the page: 0.01607 seconds