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.
Scenario: - Create C++ Application project (with main.cpp) - Call context menu on "Test Files" logical folder and call New Test Folder... menu item - Press OK button - Select "New Test 1" folder and press "New File..." button on toolbar - Select C++ category and "C++ Simple Test" file type. Press Next button. - Press Finish button - Clean and Build project ===> mkdir -p build/Debug/GNU-Solaris-x86/tests rm -f build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o.d g++ -c -g -MMD -MP -MF build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o.d -o build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o newcppsimpletest.cpp mkdir -p build/Debug/GNU-Solaris-x86 rm -f build/Debug/GNU-Solaris-x86/main.o.d g++ -c -g -MMD -MP -MF build/Debug/GNU-Solaris-x86/main.o.d -o build/Debug/GNU-Solaris-x86/main.o main.cpp mkdir -p build/Debug/GNU-Solaris-x86 [13] | 0| 35|FUNC |GLOB |0 |1 |main mkdir -p dist/Debug/GNU-Solaris-x86 g++ -o dist/Debug/GNU-Solaris-x86/cppapplication_1 build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o build/Debug/GNU-Solaris-x86/main_nomain.o build/Debug/GNU-Solaris-x86/main.o ld: fatal: symbol 'main' is multiply-defined: (file build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o type=FUNC; file build/Debug/GNU-Solaris-x86/main.o type=FUNC); ld: fatal: file processing errors. No output written to dist/Debug/GNU-Solaris-x86/cppapplication_1 collect2: ld returned 1 exit status gmake[2]: *** [dist/Debug/GNU-Solaris-x86/cppapplication_1] Ошибка 1 gmake[2]: Leaving directory `/export/files/NB/CppApplication_1' gmake[1]: *** [.build-conf] Ошибка 2 gmake[1]: Leaving directory `/export/files/NB/CppApplication_1' gmake: *** [.build-impl] Ошибка 2 BUILD FAILED (exit value 2, total time: 452ms)
please evaluate
fixed: http://hg.netbeans.org/cnd-main/rev/602257200b1d