NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

"_nomain.o" suffix causing compile errors

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
androticus



Joined: 14 Apr 2017
Posts: 2

PostPosted: Tue Apr 18, 2017 10:24 pm    Post subject: "_nomain.o" suffix causing compile errors Reply with quote

This seems to happen when I add a new CppUnit test, I get errors compiling, such as these, wherein there are my .o files as well as versions with _nomain.o and the linker complains due to duplicate symbols. There are also now warnings about "overriding commands". This is very frustrating, and I've had these "_no_main.o" files several different times now. I am compiling a library project in NetBeans 8.0.2 on Mac OS El Capitan.

Code:

"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
rm -f -r build/Debug
nbproject/Makefile-Debug.mk:124: warning: overriding commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
nbproject/Makefile-Debug.mk:76: warning: ignoring old commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
rm -f build/Debug/GNU-MacOSX/tests/TestFiles/f3

CLEAN SUCCESSFUL (total time: 125ms)
"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
nbproject/Makefile-Debug.mk:124: warning: overriding commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
nbproject/Makefile-Debug.mk:76: warning: ignoring old commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
"/Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk build/Debug/GNU-MacOSX/tests/TestFiles/f3
nbproject/Makefile-Debug.mk:124: warning: overriding commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
nbproject/Makefile-Debug.mk:76: warning: ignoring old commands for target `build/Debug/GNU-MacOSX/tests/TestFiles/f3'
mkdir -p build/Debug/GNU-MacOSX/tests/tests


and then later, these types of duplicates:

Code:

mkdir -p build/Debug/GNU-MacOSX/tests/TestFiles
g++       -o build/Debug/GNU-MacOSX/tests/TestFiles/f3 build/Debug/GNU-MacOSX/tests/tests/SchemaTest.o build/Debug/GNU-MacOSX/tests/tests/SchemaTestRunner.o build/Debug/GNU-MacOSX/src/engine/Area_nomain.o build/Debug/GNU-MacOSX/src/engine/Ganglion_nomain.o build/Debug/GNU-MacOSX/src/engine/Pool_nomain.o build/Debug/GNU-MacOSX/src/engine/Prjn_nomain.o build/Debug/GNU-MacOSX/src/schema/SchemaReader_nomain.o build/Debug/GNU-MacOSX/src/util/VectorHelper_nomain.o build/Debug/GNU-MacOSX/src/util/aapoint_nomain.o build/Debug/GNU-MacOSX/src/engine/Area.o build/Debug/GNU-MacOSX/src/engine/Ganglion.o build/Debug/GNU-MacOSX/src/engine/Pool.o build/Debug/GNU-MacOSX/src/engine/Prjn.o build/Debug/GNU-MacOSX/src/schema/SchemaReader.o build/Debug/GNU-MacOSX/src/util/VectorHelper.o build/Debug/GNU-MacOSX/src/util/aapoint.o  `cppunit-config --libs`   
duplicate symbol __ZN9neuroproc4Area8destructEv in:
    build/Debug/GNU-MacOSX/src/engine/Area_nomain.o
    build/Debug/GNU-MacOSX/src/engine/Area.o
duplicate symbol __ZN9neuroproc4AreaD2Ev in:
    build/Debug/GNU-MacOSX/src/engine/Area_nomain.o
    build/Debug/GNU-MacOSX/src/engine/Area.o
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo