Don't ask me why (I'm a C programmer, not a C++ programmer) but get rid of the new keyword.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.