Hello developers, I want to compile my C++ code in the terminal. But I have some errors looks like that:
Undefined symbols for architecture x86_64: 'cv::Mat::deallocate()', referenced from: cv::Mat::release() in main-9ae616.o 'cv::imread(std::__1::basic_string<char, std::__1::char_traits,=' std::__1::allocator=' >=' const&,=' int)',=' referenced=' from:=' _main=' in=' main-9ae616.o=' 'cv::imshow(std::__1::basic_string<char,=' std::__1::char_traits,=' std::__1::allocator=' >=' const&,=' cv::_inputarray=' const&)',=' referenced=' from:=' _main=' in=' main-9ae616.o=' 'cv::waitkey(int)',=' referenced=' from:=' _main=' in=' main-9ae616.o=' 'cv::fastfree(void*)',=' referenced=' from:=' cv::mat::~mat()=' in=' main-9ae616.o=' ld:=' symbol(s)=' not=' found=' for=' architecture=' x86_64=' clang:=' error:=' linker=' command=' failed=' with=' exit=' code=' 1=' (use=' -v=' to=' see=' invocation)<=' p='>
My command:
g++ -std=c++11 -o out main.cpp
How to solve this issue? help me, please?
editretagflag offensiveclosemergedelete
Hello
I am adding core data to an existing project that doesn't currently have it. I created the Data Model and added one entity with attributes. When I right click on 'Editor/Create NSManagedObject Subclass' it creates 4 files - EntityName+CoreDataClass.h, .m and EntityName+CoreDataProperties.h and .m. The build fails with an error '2 duplicate symbols for architecture x86_64. I can build without subclassing the entity. Skype for business macos dark mode.
Aug 04, 2015 You are actually running Clang which compiles to x8664. You need to run the GCC that you compiled. Normally when compiling GCC as a cross compiler you give it a different name than GCC (which is one of the configure script options for GCC when compiling it) so that you can tell the difference between the GCC provided by the system and your own GCC cross compiler.
Can someone please help! I have spent many hours trying to figure this out.
duplicate symbol _OBJC_CLASS_$_CDEntityName in:
/Users/xxxx/Library/Developer/Xcode/DerivedData/AppName-dosiheqvgdthmcafbbeqlrylwxft/Build/Intermediates/AppName.build/Debug-iphonesimulator/AppName.build/Objects-normal/x86_64/CDEntityName+CoreDataClass.o
duplicate symbol _OBJC_METACLASS_$_CDEntityName in:
/Users/xxxx/Library/Developer/Xcode/DerivedData/AppName-dosiheqvgdthmcafbbeqlrylwxft/Build/Intermediates/AppName.build/Debug-iphonesimulator/AppName.build/Objects-normal/x86_64/CDEntityName+CoreDataClass.o
Macos Undefined Symbols For Architecture X86_64
ld: 2 duplicate symbols for architecture x86_64
Macos Gcc Undefined Symbols For Architecture X86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) https://heavysupermarket522.weebly.com/blog/zawgyi-font-for-mac-os-mojave.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |