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 258626 - Unable to identify const variable in included header file outside of project directory
Summary: Unable to identify const variable in included header file outside of project ...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-03 02:39 UTC by MackSix
Modified: 2016-09-01 14:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logfile (55.83 KB, text/plain)
2016-04-03 02:39 UTC, MackSix
Details
Project PPP2ED_1.zip (3.45 MB, application/x-zip-compressed)
2016-04-03 02:40 UTC, MackSix
Details
Screenshot (230.21 KB, image/png)
2016-04-03 02:40 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2016-04-03 02:39:33 UTC
Created attachment 159100 [details]
logfile

I am using MSYS2's mingw32 toolchain. 


1. Unzip folders (PPP2ED_1 & lib) in the attached zip file (PPP2ED_1.zip) to a convenient location.
2. Open up PPP2ED_1 project in netbeans.
3. Open up Graph.h from the Header Files logical project folder.
4. Notice on line 19 and several lines under it, there are unresolved identifiers like FL_RED. These const variables are defined in lib\FLTK\include\FL\Enumerations.H (See attached screenshot.)
5. Move the lib folder and all of it's content into the PPP2ED_1 project folder and change the projects C++ Include Directories and Linker->Additional Library Directories accordingly. 
6 Wait for the project to be re-parsed.
7. Notice the identifiers in Step #4 are now recognized.



Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
Comment 1 MackSix 2016-04-03 02:40:20 UTC
Created attachment 159101 [details]
Project PPP2ED_1.zip
Comment 2 MackSix 2016-04-03 02:40:47 UTC
Created attachment 159102 [details]
Screenshot
Comment 3 MackSix 2016-04-03 02:44:21 UTC
Also valid in:

Product Version: NetBeans IDE Dev (Build 201603260001)
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
Comment 4 MackSix 2016-04-03 02:51:40 UTC
Note: Adding ..\lib\FLTK\include\FL\ to the projects C++ Compiler Inculde Directories does not help and it causes problems with the include on line 22 of ..\lib\FLTK\include\FL\math.h

Another workaround: Adding lib\FLTK\include\FL\Enumerations.H to the Header Files logical folder fixes it.
Comment 5 MackSix 2016-04-03 12:41:59 UTC
(In reply to MackSix from comment #4)
> Note: Adding ..\lib\FLTK\include\FL\ to the projects C++ Compiler Inculde
> Directories does not help and it causes problems with the include on line 22
> of ..\lib\FLTK\include\FL\math.h


Of course this should not work because the include specifies the folder "FL/Enumerations.H" on line 11 of PPP2ED_1\fltk.h