Post
Topic
Board Development & Technical Discussion
Re: error: txNew does name not a type (.1 BTC reward for solution)
by
twobitcoins
on 10/06/2013, 21:21:23 UTC
You have to put that code inside a function.  Executable statements can't be at file scope.

I'm not sure when you want the code to run, but for example if you are trying to run it on startup, you could place it at the end of AppInit2 in init.cpp (before the return statement).