ios - Linking error duplicate symbol _kCHPointerSize with CHDataStructure static lib -



ios - Linking error duplicate symbol _kCHPointerSize with CHDataStructure static lib -

i trying utilize chdatastructures static library iphone in xcode project. included # import "chdatastructures.h" in class header. however, when compile project error:

d: duplicate symbol _kchpointersize in /users/sam/desktop/apps/libchdatastructures.a(util.o) , /users/sam/desktop/apps/build/apps.build/debug-iphonesimulator/apps.build/objects-normal/i386/appsappdelegate.o collect2: ld returned 1 exit status command /developer/platforms/iphonesimulator.platform/developer/usr/bin/g++-4.2 failed exit code 1

i using gcc-4.2 compiler , have tried llvm gcc 4.2 well. tried -objc, -all_build, , -force_build flags set in build setting not compiling. tried clean target, , create sure static lib included target binary or not. couldn't figure out problem. can help?

probably far late ran similar if still issue, check import statements.

it looks might referencing kchpointersize in both appdelegate , util class.

in case had imported same .h file 1 time often. removed 1 of import statements , problem solved.

ios xcode chdatastructures

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -