-
Notifications
You must be signed in to change notification settings - Fork 6
Common errors
Here are common errors that could happen when using CSnake.
... AttributeError: 'GenericProject' object has no attribute 'AddProperties'
The 'AddProperties' method was introduced in the CSnake 2.4.4 so if you are having this error it is because you are trying to configure code using it with a version of CSnake that does not support it. Please update CSnake.
A tool returned an error code: "Performing Pre-Build Event..."
Or A tool returned an error code from "Running rule Create test runner"
CSnake creates some pre build rules to run CxxTests to create the test runner and suites that group tests together. It is possible that python was not found, either because it was not specified in the Options Tab or because the path is wrong.
The C compiler "cl" is not able to compile a simple test program.
One first option could be that you do not have the compiler that was set during the configuration, for example you chose a 64bits configuration but only have a compiler that can handle 32bits. This error is typical with Microsoft Visual Studio 9 2008 where the 64bits version of the compiler is not installed by default (see http://www.viva64.com/en/k/0006/). In this case, you need to go to the Uninstall or Change a program
Windows panel, select Microsoft Visual Studio, click on Uninstall/Change
, click Next
once Visual Studio has loaded its stuff and choose Add or Remove Features
. You can now tick the 64bits tickbox.
If this does not work, it is maybe a problem of permissions, most probably on Microsoft Windows Vista or 7, and for this I do not have a good answer...
Back to the User Guide.