- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am doing google test in Aurix IDE V1.8.0. I have c source file along with c++ files but it showing some error. Have anyone faced the same issue or know how to do google test using the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've no experience in using GoogleTest. But the issue itself is likely caused by a missing include folder entry. The error message indicates that the header file named gtest-port.h includes an include line like:
#include "sys/stat.h"
Supposed the stat.h header file does exist, it cannot be located. Please ensure that menu:
Project >> Properties >> C/C++ Build >> Settings >> TASKING C/C++ Compiler >> Include Paths
does include an entry which points to the folder which includes the 'sys' subfolder. Then the compiler can combine this entry plus the 'sys/stat.h' to locate the header file.
If you cannot modify the content of the Include Paths menu, you need to disable option:
Auto-discover compiler include paths
in menu:
Project >> Properties >> AURIX Development Studio >> Build
first.
Best regards,
Ulrich Kloidt
TASKING tools support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This seem to be normal application related issues. The unrecognized pragma warning is generated when a pragma which is supported by a different compiler but not supported by the compiler included in the ADS is used. You can verify if maybe a similar pragma does exist for the ADS compiler and replace this in the source code.
The #error line is preprocessor related. You need to review the content of the header file to determine how to mitigate this error. Probably some preprocessor define is missing or the source code includes a compiler product check like if GCC compiler do this if another compiler do that. And if the TASKING compiler is not included in that list the source code will need an overhaul.
Best regards,
Ulrich Kloidt
TASKING tools support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An example is send to your email.