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

Bug 354675

Summary: [fp] malloc
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
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mario Charest CLA 2011-08-12 17:14:26 EDT
In the following C++ program:


#include <memory.h>
#include <stdlib.h>
#include <cstdlib>

int main(int argc, char *argv[]) {

	char *p = (char*) malloc(10);

	return EXIT_SUCCESS;
}


malloc is reported as unresolved
Comment 1 Tomasz Wesolowski CLA 2011-08-17 13:45:59 EDT
I can't reproduce that problem.

Looks like something is wrong with your parser configuration. Try to build the project, auto discovery options should pick up the settings for your compiler.
Comment 2 Elena Laskavaia CLA 2011-10-24 21:01:46 EDT
I think this is configuration issue. Does it work if you remove cstdlib header?
Does it work if you remove all pre-indexed headers from the global indexer settings?