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 246070 - Clean and Build fails when two project files are present
Summary: Clean and Build fails when two project files are present
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 17:11 UTC by aschwarz1309
Modified: 2014-07-29 07:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (38.96 KB, text/plain)
2014-07-28 17:11 UTC, aschwarz1309
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aschwarz1309 2014-07-28 17:11:40 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

g++ 4.8.3 (cygwin)

I have 50 *.cpp files and 53 header files on two systems (dektop and laptop). On mhy desktop I use Netbeans 7.4 and  on my laptop I use Netbeans 8.0. this issue concerns my laptiop

When two of my files are in the logical folders, Header Files and Source Files, Clean and Build reports:
build/Debug/Cygwin64-Windows/sliphashentry.o: In function `slip::SlipHashEntry::sdbm(std::string const&)':
/c/home/skidmarks/Projects/SLIP/slip/SlipHashEntry.cpp:562: multiple definition of `slip::SlipHashEntry::sdbm(std::string const&)'
build/Debug/Cygwin64-Windows/SlipHashEntry.o:/c/home/skidmarks/Projects/SLIP/slip/SlipHashEntry.cpp:562: first defined here

When these two files are removed from the project  the Clean and Build builds without error.

On my desktop NB 7.4 system no such error exists.

FileNames:
   SlipHashEntry.h
   SlipHashEntry.cpp
Comment 1 aschwarz1309 2014-07-28 17:11:43 UTC
Created attachment 148363 [details]
IDE log
Comment 2 Alexander Simon 2014-07-29 07:35:05 UTC
Make sure that we on the same page:
1. Your desktop and laptop have the same platform (Windows 7).
2. Your desktop and laptop have the same tool collection g++ 4.8.3 (cygwin).
3. Build logs in Netbeans 7.4 and Netbeans 8.0 are differed.
4. Build logs in console on desktop and laptop are not differed.
Please conform and reopen the bug.
It would be nice if you attach a sample project with the issue.