agens-no / AGGeometryKit

Quadrilaterals on CALayer, CGGeometry-functions, UIView/CALayer properties and other invaluable tools.
Other
1.27k stars 130 forks source link

Fixed compile error due to duplicate symbols #28

Closed cipherCOM closed 9 years ago

cipherCOM commented 9 years ago

If extern is omitted linker issues arise such as the following:

duplicate symbol _AGKLineZero in:
    /[...]/Objects-normal/x86_64/MyFile.o
    /[...]/libPods-AGGeometryKit.a(AGKLine.o)
ld: 1 duplicate symbols for architecture x86_64
cipherCOM commented 9 years ago

Normally extern should also be applied to all functions, but the constants are especially important due to failing compiles.

hfossli commented 9 years ago

Thanks!

hfossli commented 9 years ago

Pushed 1.1.2 to cocoa pods trunk