Unfortunately, I am forced to use gcc 3.2.3 (MinGW) due to a database of third-party codes having problems with later versions of gcc.
With gcc 3.2.3, I can build a static library (yaml-cpp.a) just fine (by editing the CMakeLists.txt file to remove "set (LIB_TYPE SHARED)", but I can't link my application against the library. This always leads to following error:
C: / MinGW_2 / bin /../ Library / GCC Pb / mingw32 / 3.2.3 /../../../ libstdC ++, and (C ++ locale.o) (i.e. ext + 0x38c ): undefined reference to `strtold '
I get the same error when trying to create a yaml-cpp shared library.
After searching the Internet a bit, most of them seem to solve this problem in their projects using 'strtod' instead of 'strtold', but I cannot find a link to 'strtold' in yaml-cpp code; so i'm a little lost?
Any ideas?
source
share