This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186773 - IDE treating c++ projects/files as c
Summary: IDE treating c++ projects/files as c
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 23:10 UTC by davidc538
Modified: 2010-05-30 16:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davidc538 2010-05-26 23:10:07 UTC
Netbeans is treating my c++(using extension .cpp) files as c files. I selected c++ when i created the project. Under each files properties in all configurations the build tool is set to c++ compiler. It wasn't always doing this to me so the problem might not be easily recreatable.
Comment 1 Alexander Simon 2010-05-27 08:21:13 UTC
(In reply to comment #0)
> Netbeans is treating my c++(using extension .cpp) files as c files.
What is file icon of *.cpp files in project view?
Also look at Tools->Options->C/C++->Other

> I selected c++ when i created the project.
What do you mean?
Provide steps to repeat.
Comment 2 Alexander Simon 2010-05-30 16:44:59 UTC
user answer:
The icon was just a c and not cc for .cpp files. Also I haven't found a way to repeat it just yet but I'm pretty sure it happened because I accidentally went File > New File > C source file (When I should have used c++) and for the extension I changed it to .cpp because I didn't realize my mistake. after that netbeans always treated .cpp files as C language files until I uninstalled and reinstalled it. Let me know if you need anything else.