Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Resurrection of Sprouts Classic
by
arcmetal
on 11/08/2018, 08:11:24 UTC
...

Good news.  I managed to compile and run the old Sprouts wallet using QT Creator on a Mac.  Now I can make changes if I want.
Sweet!  This means that you got past the errors and warnings.  Make a copy, and mess with it as much as you want.

I haven't used qt creator, but I am going to guess that it should let you cross compile a version for the Mac, linux, and windows.

I got past the errors but there are still warnings such as implicit conversions, zero as null pointers repeating over and over (1020 all together).  
Can you post (copy and paste) the exact warning?  Its possible the fix is an option missing from the linking, or  compiling. The solution should not be a change in the code.

The topic appears to be a well known problem:
http://scottmeyers.blogspot.com/2015/11/breaking-all-eggs-in-c.html


So I re-compiled and there are 233 warnings.  I don't even know if I can copy and paste as I have to do it one by one.  I did notice that the following keeps on repeating:

/Users/skourdes/Downloads/sprouts-master/src/script.h:451: warning: variable 'nSize' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
            else if (opcode == OP_PUSHDATA4)
                     ^~~~~~~~~~~~~~~~~~~~~~

It appears that getting a lot of the above is just noise from the compiler.  You can turn those warnings off by removing the option you listed: "-Wsometimes-uninitialized".  Remove that and most of those should turn off.
https://stackoverflow.com/questions/17705880/gcc-failing-to-warn-of-uninitialized-variable

What is more important is having no errors, then of secondary importance is usually the first and second warning. What are they?  --- Getting rid of the first warning can be helpful, but it may not matter that much, it depends on what it is.