Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354673

Summary: [fp] strerror
Product: [Tools] CDT Reporter: Mario Charest <mcharest>
Component: cdt-codanAssignee: CDT Codan Inbox <cdt-codan-inbox>
Status: RESOLVED WORKSFORME QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif, zeratul976
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mario Charest CLA 2011-08-12 16:48:16 EDT
In this simple program:

#include <cstdlib>
#include <iostream>
#include <errno.h>
#include <string.h>

int main(int argc, char *argv[]) {
	std::cout << "Welcome to the QNX Momentics IDE" << strerror(errno) << std::endl;
	return EXIT_SUCCESS;
}

The CDT8 (QNX distribution) will report:

Multiple markers at this line
	- Invalid overload of 'std::endl'
	- Function 'strerror' could not be resolved
Comment 1 Tomasz Wesolowski CLA 2011-08-17 13:43:59 EDT
This looks like a parser problem, not Codan problem, since these two are parser errors.
Comment 2 Nathan Ridge CLA 2013-07-21 23:14:32 EDT
Works fine for me with CDT 8.2 (Kepler).
Comment 3 Nathan Ridge CLA 2016-12-29 01:12:48 EST
Closing per comment 2. Feel free to reopen if you're still seeing this.