Questions tagged [duplicate-symbol]

99 questions
57
votes
17 answers

Duplicate Symbol Error in Objective-C build?

I got this error when I press build+debug: ld: duplicate symbol .objc_class_name_BlogTableItemCell in…
fabian
  • 5,433
  • 10
  • 61
  • 92
49
votes
16 answers

duplicate symbols for architecture armv7

Getting following error when try to use Layar SDK in my existing app. How can I solve this? Ld /Users/pnawale/Library/Developer/Xcode/DerivedData/hub-afxxzaqisdfliwbzxbixsaifljcl/Build/Products/Debug-iphoneos/hub.app/hub normal armv7 cd…
Paresh
  • 993
  • 1
  • 7
  • 15
31
votes
3 answers

How can I avoid "duplicate symbol" errors in xcode with shared static libraries?

I have static libraries A, B and C organized into Xcode projects. A and B depend on C. When I build an iPhone project that depends on A and B, I get a linker error that a duplicate symbol (from C) was detected in A and B. How can I organize these…
richcollins
  • 1,504
  • 4
  • 18
  • 28
29
votes
16 answers

Apple Mach -O Linker command failed

After updating my POD install, Xcode sprouted a new issue:
Phoenix Haroz
  • 333
  • 1
  • 4
  • 9
12
votes
2 answers

ld: duplicate symbol _objc_retainedObject on iOS 4.3 , but not on iOS 5.0

Some background - I've built a custom Framework using Diney's guide at http://db-in.com/blog/2011/07/universal-framework-iphone-ios-2-0/ Its built for both armv6 / armv7 , its an ARC-based framework, compiled with a depolyment target of 4.3. When i…
Shai Mishali
  • 9,224
  • 4
  • 56
  • 83
11
votes
4 answers

Duplicate Symbol in C

I have two source files: Source FIle 1 (assembler.c): #include "parser.c" int main() { parse_file("test.txt"); return 0; } Source File 2 (parser.c): void parse_file(char *config_file); void parse_file(char *src_file) { // Function…
darksky
  • 20,411
  • 61
  • 165
  • 254
9
votes
1 answer

Duplicate Symbol _OBJC_CLASS_$_LoginController

I know this Question has been asked many times before, but none has solved my problem uptill now. I know that this error occurs when you got multiple copies of your file in project. I tried to clean the build, delete any LoginController.m file in…
NightFury
  • 13,436
  • 6
  • 71
  • 120
6
votes
1 answer

Conflict between GoogleToolboxForMac & GoogleOpenSource.framework as both contains GTMLogger file

I am getting error : ld: 23 duplicate symbols for architecture arm64 &duplicate symbols are found in : duplicate symbol _OBJC_METACLASS_$_GTMLogAllowedLevelFilter…
6
votes
3 answers

ld: xx duplicate symbols for architecture armv7 Xcode Project

Hi everybody I have a Xcode project that gives me this error every time I try to build the project: ld: xx duplicate symbols for architecture armv7 Xcode Project clang: error: linker command failed with exit code 1... I have googled around and…
Meeko
  • 85
  • 2
  • 6
5
votes
1 answer

Duplicate symbol error when linking multiple static libraries.

There are a fair number of related questions out there already, but I'm just not getting this resolved. I'm building an application that includes two separate static libraries: RestKit and another that's on NDA. When I build, I'm getting a Apple…
geraldWilliam
  • 4,123
  • 1
  • 23
  • 35
5
votes
2 answers

How to find the location of duplicate symbol

I have several files listed in compile sources and it doesn't want to sort by name so I'm stuck having to sort through them by hand looking for duplicates. Is there an easier way to do this? It's only ~100 files but it would be nice to know a more…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
5
votes
3 answers

Why redefinition of a function which is already present in dynamic or static library does not throw any error?

Wy redefinition of function already present in dynamic library does not throws any compilation and linking error? In the below function #include "calc_mean.h" #include int mean(int t, int v) { return 0; } int main () { int theMean =…
5
votes
1 answer

Random duplicate symbols in xcode (C++)

I am trying to build a C++ project in Xcode 4.6.3. In my project (the beginnings of a very simple OpenGL game) I have two files: textures.h: #pragma once #include void load(); // load textures GLuint dirt, water; // variables to…
qxz
  • 3,814
  • 1
  • 14
  • 29
5
votes
1 answer

Duplicate symbol when adding Google Analytics v3 and Google Maps 1.4.3 to my project

I'm currently developing an app that uses maps. So a couple of weeks ago I added the Google Maps SDK v1.4.3 to my project. Worked just fine following the getting started instruction. Today I need to add Google Analytics to my project so I…
Dabrut
  • 862
  • 1
  • 10
  • 25
4
votes
3 answers

How do I fix this duplicate symbol error?

From the error I am getting: ld: duplicate symbol _main in…
Westley
  • 1,143
  • 14
  • 27
1
2 3 4 5 6 7