Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354675 - [fp] malloc
Summary: [fp] malloc
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 17:14 EDT by Mario Charest CLA
Modified: 2011-10-24 21:01 EDT (History)
2 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 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?