Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354673 - [fp] strerror
Summary: [fp] strerror
Status: RESOLVED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 16:48 EDT by Mario Charest CLA
Modified: 2016-12-29 01:12 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.