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.
Summary: | CppUnit AND multiple definition of `main' | ||
---|---|---|---|
Product: | cnd | Reporter: | dix75 <dix75> |
Component: | UnitTest Support | Assignee: | issues@cnd <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | ahontour |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
dix75
2010-10-16 00:12:31 UTC
we do not support unit tests for Qt projects yet. you could try to create test targets manually: http://nnnnnk.name/unittests/nb69unittests_for_existing.html I don't using QT. I have a similar problem when generating multiple cppunit tests as described here: http://netbeans.org/kb/docs/cnd/c-unit-test.html#addmore If I only have one cppunit-test everything compiles fine. Whenever I create a second test then I got following compile warnings and errors: "make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory `/home/ha/NetBeansProjects/cpputils/tags/1.0/db' nbproject/Makefile-Debug.mk:107: warning: overriding commands for target `build/Debug/GNU-Linux-x86/tests/TestFiles/f2' nbproject/Makefile-Debug.mk:73: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/tests/TestFiles/f2' "make" -f nbproject/Makefile-Debug.mk build/Debug/GNU-Linux-x86/tests/TestFiles/f2 make[2]: Entering directory `/home/ha/NetBeansProjects/cpputils/tags/1.0/db' nbproject/Makefile-Debug.mk:107: warning: overriding commands for target `build/Debug/GNU-Linux-x86/tests/TestFiles/f2' nbproject/Makefile-Debug.mk:73: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/tests/TestFiles/f2' mkdir -p build/Debug/GNU-Linux-x86/tests/TestFiles g++ -std=c++0x -o build/Debug/GNU-Linux-x86/tests/TestFiles/f2 build/Debug/GNU-Linux-x86/tests/tests/DbResultTestClass.o build/Debug/GNU-Linux-x86/tests/tests/dbresulttestrunner.o build/Debug/GNU-Linux-x86/DbRow_nomain.o build/Debug/GNU-Linux-x86/Db_nomain.o build/Debug/GNU-Linux-x86/DbCtrl_nomain.o build/Debug/GNU-Linux-x86/DbResult_nomain.o build/Debug/GNU-Linux-x86/postgre_nomain.o build/Debug/GNU-Linux-x86/DbRow.o build/Debug/GNU-Linux-x86/Db.o build/Debug/GNU-Linux-x86/DbCtrl.o build/Debug/GNU-Linux-x86/DbResult.o build/Debug/GNU-Linux-x86/postgre.o -lcppunit -lcppunit -lcppunit build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::operator<<(std::basic_ostream<char, std::char_traits<char> >&, ape::db::DbRow&)': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:15: multiple definition of `ape::db::operator<<(std::basic_ostream<char, std::char_traits<char> >&, ape::db::DbRow&)' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:15: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::DbRow::operator bool()': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:33: multiple definition of `ape::db::DbRow::operator bool()' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:33: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::DbRow::operator[](int)': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:45: multiple definition of `ape::db::DbRow::operator[](int)' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:45: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `DbRow': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:23: multiple definition of `ape::db::DbRow::DbRow(ape::db::DbRow const&)' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:23: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::DbRow::operator=(ape::db::DbRow const&)': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:27: multiple definition of `ape::db::DbRow::operator=(ape::db::DbRow const&)' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:27: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::DbRow::operator[](ape::String)': /home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:37: multiple definition of `ape::db::DbRow::operator[](ape::String)' build/Debug/GNU-Linux-x86/DbRow_nomain.o:/home/ha/NetBeansProjects/cpputils/tags/1.0/db/DbRow.cpp:37: first defined here build/Debug/GNU-Linux-x86/DbRow.o: In function `ape::db::DbRow::operator[](char const*)': .... and so on |