Home Forums Software Development [Solved] Beginner. Start tracking in Code::Blocks on C++ Reply To: [Solved] Beginner. Start tracking in Code::Blocks on C++

#4010
Greegory
Participant

I’m create new console application with code from MinimalEyePositionDataStream.c, and errors still survived. May be it becouse example writing in C, but I’m use C++? Where is problem?

||=== Build: Debug in tx (compiler: GNU GCC Compiler) ===|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|82|warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]|
C:\GR ASP 2015\3D prog\eye\tx\main.cpp|13|warning: ignoring #pragma comment [-Wunknown-pragmas]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXClientTypes.h|294|error: ‘function’ in namespace ‘std’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXClientTypes.h|324|error: ‘function’ in namespace ‘std’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXContext.h|421|error: ‘ConnectionStateChangedCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXContext.h|421|error: ISO C++ forbids declaration of ‘handler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXContext.h|421|error: ‘ConnectionStateChangedCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXContext.h|421|error: ISO C++ forbids declaration of ‘handler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h||In member function ‘THandle Tx::Utils::ScopedHandleTemplate<THandle>::Detach()’:|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|47|warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|47|error: ‘handle’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|49|error: ‘handle’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|74|error: ‘std::function’ has not been declared|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|74|error: expected ‘,’ or ‘…’ before ‘<‘ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h||In function ‘TX_RESULT Tx::Utils::GetBufferData(std::vector<TElement>&, int)’:|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|82|error: ‘nullptr’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|82|error: there are no arguments to ‘fnGetBuf’ that depend on a template parameter, so a declaration of ‘fnGetBuf’ must be available [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|82|note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h||In function ‘TX_RESULT Tx::Utils::GetBufferData(std::vector<TElement1>&, TX_RESULT (*)(THandle1, TElement2*, TX_SIZE*), THandle2)’:|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: ‘function’ is not a member of ‘std’|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: expected primary-expression before ‘(‘ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: expected primary-expression before ‘*’ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: expected primary-expression before ‘,’ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: expected primary-expression before ‘*’ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: expected primary-expression before ‘)’ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|105|error: ‘fnGetBuf’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|108|warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|113|error: ‘std::function’ has not been declared|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|113|error: expected ‘,’ or ‘…’ before ‘<‘ token|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h||In function ‘TX_RESULT Tx::Utils::GetString(std::string*, int)’:|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|115|error: ‘estimatedLength’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|116|warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|116|error: ‘result’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|117|error: ‘result’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h||In function ‘TX_RESULT Tx::Utils::GetString(std::string*, TX_RESULT (*)(THandle1, TX_STRING, TX_SIZE*), THandle2, TX_SIZE)’:|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|127|warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|127|error: ‘fnGetString’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|132|error: ‘fnGetString’ was not declared in this scope|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|181|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|181|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|181|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|181|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|194|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|194|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|194|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|194|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|207|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|207|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|207|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|207|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|219|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|219|error: ISO C++ forbids declaration of ‘handler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|219|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|219|error: ISO C++ forbids declaration of ‘handler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|233|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|233|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|233|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|233|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|246|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|246|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|246|error: ‘AsyncDataCallback’ in namespace ‘Tx’ does not name a type|
C:\GR ASP 2015\3D prog\eye\tx\eyex\EyeXUtils.h|246|error: ISO C++ forbids declaration of ‘completionHandler’ with no type [-fpermissive]|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options…|
||=== Build failed: 50 error(s), 6 warning(s) (0 minute(s), 1 second(s)) ===|