Questions tagged [duplicate-symbol]
99 questions
4
votes
2 answers
C++ duplicate symbol linker error with proper include guards?
I'm writing a program to test concrete inheritance, though I cannot resolve the duplicate symbol linker error Clang returns. My understanding is duplicate symbols is always the result of incorrect includes/guards. I have triple checked my…

kits
- 609
- 6
- 20
4
votes
2 answers
C++ Duplicate Symbol error when defining static class variable in XCode
I have a static class member incremented in the constructor. As per the rules, it is declared in the class and defined outside. This should be totally legal. Any ideas why I'm getting a duplicate symbol error?
class Player
{
private:
static…

Old McStopher
- 6,295
- 10
- 60
- 89
4
votes
1 answer
Duplicate symbol in C using Clang
I am currently working on my first "serious" C project, a 16-bit vm. When I split up the files form one big source file into multiple source files, the linker (whether invoked through clang, gcc, cc, or ld) spits out a the error:
ld: duplicate…

isf
- 61
- 1
- 1
- 2
3
votes
2 answers
Duplicate symbols for architecture arm64 - React-Native
I have a React-Native Project that works well, however, when I install vision-camera-code-scanner, the project stops building in XCode and I get the following error:
duplicate symbol '_OBJC_CLASS_$_GDTCCTCompressionHelper' in:
…

Rafael Pereira
- 31
- 1
- 4
3
votes
2 answers
What is the equivalent of v-for in react?
In vue I can duplicate one svg file several times like v-for="i in 5":key="i". How can I do it in React?
3
votes
3 answers
Xcode Exit Code 1 - Duplicate Symbol
Sorry I know this has been covered all over the place, only I can't fix this to save my life.
If someone could explain clearly what I might have done and what I might be able to do to fix this I would be forever grateful.
Here is my error:
Command…

Josh Kahane
- 16,765
- 45
- 140
- 253
3
votes
2 answers
Link Error: Duplicate Symbol
I have 4 source files listed below:
//a.h
#pragma once
namespace proj {
class A {} a;
} // namespace proj
//b.h
#pragma once
namespace proj {
int foo();
} // namespace proj
// b.cpp
#include "proj/a.h"
namespace proj {
int foo() {
A b =…

user1413793
- 9,057
- 7
- 30
- 42
3
votes
0 answers
Firebase and Google Analytics Frameworks are duplicated in iOS
I upgraded the Firebase version to 3.2 in my swift project.
I used the guide in firebase.google.com.
I tried to run app but following issues are occurred in build project.
I think this issue is appeared owing to the migration of the Google and…

Roberto.Z
- 41
- 5
3
votes
0 answers
duplicate symbol error: WebRTC and OpenSSL in iOS
When I use webrtc in ios, found the webrtc and openssl have conflict, lead to compile fail, appears to be the identifier repeat definition, excuse me, how to solve this problem, thanks!~
error:
#3 0x00bc2a50 in OBJ_NAME_add ()
#4 0x00bf833f in…

Cheng Hu
- 31
- 3
3
votes
3 answers
duplicate symbol error in C
I have the following code layout
header.h
#ifndef _header_h
#define _header_h
void empty(float *array, int l)
{
int i;
for (i=1 ; i<=l ; i++)
{
array[i]=0;
}
}
#endif
and two files (lets call them file1.c and…

MaxJ
- 157
- 1
- 7
3
votes
7 answers
Duplicate symbols (two projects in a workspace use the same code)
A is a module project. There are some test targets and the relevant reusable code is compiled in a separate (static library) target. A uses the third party Lumberjack logging library. The Lumberjack code was simply dropped into the project.
B is a…

DrummerB
- 39,814
- 12
- 105
- 142
3
votes
1 answer
duplicate symbol and application crash
I am compiling a program on AIX. It is compiled successfully but gives following warnings:
ld: 0711-224 WARNING: Duplicate symbol: .basename
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
I tried to find this symbol…

QMG
- 719
- 2
- 7
- 16
2
votes
2 answers
Restkit + MKStoreKit: duplicate symbol because of JSONKit
I'm using MKStoreKit in my application. Now I'd like to add RestKit as well, but after adding RestKit, I get the following error message in XCode:
Duplicate symbol _jk_collectionClassLoadTimeInitialization in…

swalkner
- 16,679
- 31
- 123
- 210
2
votes
2 answers
cpp Error Duplicate symbol using namespace
This is going to make me nuts !
First of all I already tried solutions from this thread (C++) Linking with namespaces causes duplicate symbol error with no success (maybe I doing it wrong)
Here is what i am attempted to do:
// ofApp.hpp
#ifndef…

S7th
- 25
- 4
2
votes
1 answer
Why is my code not throwing a duplicate symbol conflict
Why is my following code not throwing duplicate symbol conflict?
I referred to name mangling, but that seems only when there is difference in parameters. But, here there is not difference in parameters. But, still it does not throw conflict.…

electronic_coder
- 89
- 10