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 258822

Summary: Multiple issues if C++ project created on network drive
Product: cnd Reporter: weetabixharry
Component: ProjectAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch

Description weetabixharry 2016-04-14 10:16:30 UTC
Upon creating a new project (C/C++ Application) on a network drive, two instances of main.cpp show up under Source Files. Unsurprisingly, this fails to build with a "multiple definition of `main'" error. 

However, if I remove one instance from the project (or try building and running one of the Netbeans example projects), then it fails to execute, with a "... does not exist or is not an executable" error.

These problems do not occur if the project is created on a local drive.
Comment 1 Alexander Simon 2016-04-26 13:37:30 UTC
Created attachment 159441 [details]
proposed patch
Comment 2 Alexander Simon 2016-06-15 12:48:32 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/216330e83444
Comment 3 Quality Engineering 2016-06-18 03:12:45 UTC
Integrated into 'main-silver', will be available in build *201606180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/216330e83444
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258822 Multiple issues if C++ project created on network drive