Link error

Cyrille Berger Skott cberger at cberger.net
Mon Feb 7 08:27:48 GMT 2011


Hi,

Something weird have happen when merging... sounds like it dragged in an other 
branch or something... I am trying to figure out what has happened and how to 
fix it.

On Monday 07 February 2011, Thorsten Zachmann wrote:
> Hello Cyrille,
> 
> I have a link error when building pigment. Would be nice if you could have
> a look.
> 
> Thanks,
> 
> Thorsten
> 
> Linking CXX shared library ../../lib/libpigmentcms.so
> CMakeFiles/pigmentcms.dir/colorspaces/KoLabColorSpace.o: In function
> `unsigned short cfVividLight<unsigned short>(unsigned short, unsigned
> short)': KoLabColorSpace.cpp:(.text._Z12cfVividLightItET_S0_S0_[unsigned
> short cfVividLight<unsigned short>(unsigned short, unsigned short)]+0x2d):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::unitValue'
> KoLabColorSpace.cpp:(.text._Z12cfVividLightItET_S0_S0_[unsigned short
> cfVividLight<unsigned short>(unsigned short, unsigned short)]+0x39):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::zeroValue'
> KoLabColorSpace.cpp:(.text._Z12cfVividLightItET_S0_S0_[unsigned short
> cfVividLight<unsigned short>(unsigned short, unsigned short)]+0xa9):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::zeroValue'
> KoLabColorSpace.cpp:(.text._Z12cfVividLightItET_S0_S0_[unsigned short
> cfVividLight<unsigned short>(unsigned short, unsigned short)]+0xb5):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::unitValue'
> CMakeFiles/pigmentcms.dir/colorspaces/KoLabColorSpace.o: In function
> `unsigned short cfDivide<unsigned short>(unsigned short, unsigned short)':
> KoLabColorSpace.cpp:(.text._Z8cfDivideItET_S0_S0_[unsigned short
> cfDivide<unsigned short>(unsigned short, unsigned short)]+0x25): undefined
> reference to `KoColorSpaceMathsTraits<unsigned short>::zeroValue'
> KoLabColorSpace.cpp:(.text._Z8cfDivideItET_S0_S0_[unsigned short
> cfDivide<unsigned short>(unsigned short, unsigned short)]+0x31): undefined
> reference to `KoColorSpaceMathsTraits<unsigned short>::unitValue'
> CMakeFiles/pigmentcms.dir/colorspaces/KoLabColorSpace.o: In function
> `unsigned short cfArcTangent<unsigned short>(unsigned short, unsigned
> short)': KoLabColorSpace.cpp:(.text._Z12cfArcTangentItET_S0_S0_[unsigned
> short cfArcTangent<unsigned short>(unsigned short, unsigned short)]+0x25):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::zeroValue'
> KoLabColorSpace.cpp:(.text._Z12cfArcTangentItET_S0_S0_[unsigned short
> cfArcTangent<unsigned short>(unsigned short, unsigned short)]+0x31):
> undefined reference to `KoColorSpaceMathsTraits<unsigned
> short>::unitValue'
> CMakeFiles/pigmentcms.dir/colorspaces/KoRgbU8ColorSpace.o: In function
> `unsigned char cfVividLight<unsigned char>(unsigned char, unsigned char)':
> KoRgbU8ColorSpace.cpp:(.text._Z12cfVividLightIhET_S0_S0_[unsigned char
> cfVividLight<unsigned char>(unsigned char, unsigned char)]+0x27): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::unitValue'
> KoRgbU8ColorSpace.cpp:(.text._Z12cfVividLightIhET_S0_S0_[unsigned char
> cfVividLight<unsigned char>(unsigned char, unsigned char)]+0x33): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::zeroValue'
> KoRgbU8ColorSpace.cpp:(.text._Z12cfVividLightIhET_S0_S0_[unsigned char
> cfVividLight<unsigned char>(unsigned char, unsigned char)]+0x93): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::zeroValue'
> KoRgbU8ColorSpace.cpp:(.text._Z12cfVividLightIhET_S0_S0_[unsigned char
> cfVividLight<unsigned char>(unsigned char, unsigned char)]+0x9f): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::unitValue'
> CMakeFiles/pigmentcms.dir/colorspaces/KoRgbU8ColorSpace.o: In function
> `unsigned char cfDivide<unsigned char>(unsigned char, unsigned char)':
> KoRgbU8ColorSpace.cpp:(.text._Z8cfDivideIhET_S0_S0_[unsigned char
> cfDivide<unsigned char>(unsigned char, unsigned char)]+0x21): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::zeroValue'
> KoRgbU8ColorSpace.cpp:(.text._Z8cfDivideIhET_S0_S0_[unsigned char
> cfDivide<unsigned char>(unsigned char, unsigned char)]+0x2d): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::unitValue'
> CMakeFiles/pigmentcms.dir/colorspaces/KoRgbU8ColorSpace.o: In function
> `unsigned char cfArcTangent<unsigned char>(unsigned char, unsigned char)':
> KoRgbU8ColorSpace.cpp:(.text._Z12cfArcTangentIhET_S0_S0_[unsigned char
> cfArcTangent<unsigned char>(unsigned char, unsigned char)]+0x21): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::zeroValue'
> KoRgbU8ColorSpace.cpp:(.text._Z12cfArcTangentIhET_S0_S0_[unsigned char
> cfArcTangent<unsigned char>(unsigned char, unsigned char)]+0x2d): undefined
> reference to `KoColorSpaceMathsTraits<unsigned char>::unitValue'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libpigmentcms.so.8.0.0] Error 1
> make[1]: *** [libs/pigment/CMakeFiles/pigmentcms.dir/all] Error 2
> make: *** [all] Error 2


-- 
Cyrille Berger Skott



More information about the calligra-devel mailing list