undeclared symbols in cmath


Jan-Nik

Active Member
Joined
Jan 5, 2009
Messages
534
Location
Germany
I'm trying to cross-compile, but I'm not sure if I'm doing it right. I'm using scons and just added the following:



Code:
env['CC'] = '/home/jhasse/pandora-dev/arm-2011.09/bin/pandora-gcc'

env['CXX'] = '/home/jhasse/pandora-dev/arm-2011.09/bin/pandora-g++'

env.Append(CPPPATH=Split('include/pandora /home/jhasse/pandora-dev/arm-2011.09/usr/include/'))



In include/pandora there's OpenAL.



When I compile I get the following compile errors:





Code:
scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

compiling: src/audio.o

compiling: src/finally.o

In file included from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/random:38:0,

				 from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/bits/stl_algo.h:67,

				 from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/algorithm:63,

				 from /home/jhasse/pandora-dev/arm-2011.09/usr/include/boost/smart_ptr/shared_ptr.hpp:41,

				 from /home/jhasse/pandora-dev/arm-2011.09/usr/include/boost/shared_ptr.hpp:17,

				 from src/jngl/sprite.hpp:13,

				 from src/jngl.hpp:10,

				 from src/audio.cpp:14:

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:975:11: error: '::acoshl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:979:11: error: '::asinhl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:983:11: error: '::atanhl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:987:11: error: '::cbrtl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:991:11: error: '::copysignl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:995:11: error: '::erfl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:999:11: error: '::erfcl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1003:11: error: '::exp2l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1007:11: error: '::expm1l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1011:11: error: '::fdiml' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1015:11: error: '::fmal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1019:11: error: '::fmaxl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1023:11: error: '::fminl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1027:11: error: '::hypotl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1031:11: error: '::ilogbl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1035:11: error: '::lgammal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1039:11: error: '::llrintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1043:11: error: '::llroundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1047:11: error: '::log1pl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1051:11: error: '::log2l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1055:11: error: '::logbl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1059:11: error: '::lrintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1063:11: error: '::lroundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1067:11: error: '::nanl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1071:11: error: '::nearbyintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1075:11: error: '::nextafterl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1079:11: error: '::nexttowardl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1083:11: error: '::remainderl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1087:11: error: '::remquol' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1091:11: error: '::rintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1095:11: error: '::roundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1099:11: error: '::scalblnl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1103:11: error: '::scalbnl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1107:11: error: '::tgammal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1111:11: error: '::truncl' has not been declared

In file included from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/random:38:0,

				 from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/bits/stl_algo.h:67,

				 from /home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/algorithm:63,

				 from /home/jhasse/pandora-dev/arm-2011.09/usr/include/boost/function/detail/prologue.hpp:13,

				 from /home/jhasse/pandora-dev/arm-2011.09/usr/include/boost/function.hpp:24,

				 from src/finally.hpp:8,

				 from src/finally.cpp:6:

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:975:11: error: '::acoshl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:979:11: error: '::asinhl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:983:11: error: '::atanhl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:987:11: error: '::cbrtl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:991:11: error: '::copysignl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:995:11: error: '::erfl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:999:11: error: '::erfcl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1003:11: error: '::exp2l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1007:11: error: '::expm1l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1011:11: error: '::fdiml' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1015:11: error: '::fmal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1019:11: error: '::fmaxl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1023:11: error: '::fminl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1027:11: error: '::hypotl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1031:11: error: '::ilogbl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1035:11: error: '::lgammal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1039:11: error: '::llrintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1043:11: error: '::llroundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1047:11: error: '::log1pl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1051:11: error: '::log2l' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1055:11: error: '::logbl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1059:11: error: '::lrintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1063:11: error: '::lroundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1067:11: error: '::nanl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1071:11: error: '::nearbyintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1075:11: error: '::nextafterl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1079:11: error: '::nexttowardl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1083:11: error: '::remainderl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1087:11: error: '::remquol' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1091:11: error: '::rintl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1095:11: error: '::roundl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1099:11: error: '::scalblnl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1103:11: error: '::scalbnl' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1107:11: error: '::tgammal' has not been declared

/home/jhasse/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1111:11: error: '::truncl' has not been declared

scons: *** [src/audio.o] Error 1

scons: *** [src/finally.o] Error 1

scons: building terminated because of errors.


Maybe it's related to boost?
 

Cyberworm

Still Fresh
Joined
Sep 14, 2010
Messages
128
I just encountered the same problem when trying to cross-compile OpenTTD. I'm using Ivanovic's toolchain, using pandora_configure.sh for setting up.
 

Jan-Nik

Active Member
Joined
Jan 5, 2009
Messages
534
Location
Germany
I found a topic with the same problem:


Also using boost and scons.


I think the problem is that the toolchain wasn't build with -mlong-double-128, but I'm not sure ...
 

Cyberworm

Still Fresh
Joined
Sep 14, 2010
Messages
128
Here's my full list of errors, basically the same as yours:



Code:
[SRC] Compiling 3rdparty/squirrel/squirrel/sqbaselib.cpp

In file included from /home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/random:38:0,

				 from /home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/bits/stl_algo.h:67,

				 from /home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/algorithm:63,

				 from /home/cyberworm/Development/platforms/pandora/applications/openttd/openttd-1.2.2/src/3rdparty/squirrel/squirrel/sqbaselib.cpp:6:

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:975:11: error: '::acoshl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:979:11: error: '::asinhl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:983:11: error: '::atanhl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:987:11: error: '::cbrtl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:991:11: error: '::copysignl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:995:11: error: '::erfl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:999:11: error: '::erfcl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1003:11: error: '::exp2l' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1007:11: error: '::expm1l' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1011:11: error: '::fdiml' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1015:11: error: '::fmal' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1019:11: error: '::fmaxl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1023:11: error: '::fminl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1027:11: error: '::hypotl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1031:11: error: '::ilogbl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1035:11: error: '::lgammal' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1039:11: error: '::llrintl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1043:11: error: '::llroundl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1047:11: error: '::log1pl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1051:11: error: '::log2l' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1055:11: error: '::logbl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1059:11: error: '::lrintl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1063:11: error: '::lroundl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1067:11: error: '::nanl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1071:11: error: '::nearbyintl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1075:11: error: '::nextafterl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1079:11: error: '::nexttowardl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1083:11: error: '::remainderl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1087:11: error: '::remquol' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1091:11: error: '::rintl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1095:11: error: '::roundl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1099:11: error: '::scalblnl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1103:11: error: '::scalbnl' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1107:11: error: '::tgammal' has not been declared

/home/cyberworm/Development/SDKs/pandora-dev/arm-2011.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/include/c++/4.6.1/cmath:1111:11: error: '::truncl' has not been declared

make[1]: *** [3rdparty/squirrel/squirrel/sqbaselib.o] Error 1

make[1]: Leaving directory `/home/cyberworm/Development/platforms/pandora/applications/openttd/openttd-1.2.2/objs/release'

make: *** [all] Error 1
 

skeezix

Internal Development
Joined
Mar 11, 2003
Messages
8,064
Website
www.codejedi.com
On a tablet, can't write much but..


Its a problem with _declaration_, not with _linking_ by the sounds of it. Myself, I don't use a build system that hides what is going on, but you'll note it says "Compiling" and not linking, and its a declaration error.


Usually you'd ge t"missing header", so header is liekly present, but its missing stuff? maybe an #ifdef issue, so you're not #defining something?


ie: whats missing looks like top level stuf "::round1" and not somethign like "a->foo()" and 'a' is not declared yet


total guess ;)


jeff
 

Cyberworm

Still Fresh
Joined
Sep 14, 2010
Messages
128
Well I looked into cmath and at those lines it's actually undefining all those stuff. So I guess it hasn't been defined at all.


Here's where it gets undefined:



Code:
#ifdef _GLIBCXX_USE_C99_MATH_TR1

#undef acosh

#undef acoshf

#undef acoshl

#undef asinh

#undef asinhf

#undef asinhl

#undef atanh

#undef atanhf

#undef atanhl

#undef cbrt

...
 

urjaman

"I Know. We're going for a ride."
Joined
Jan 6, 2009
Messages
1,111
Age
31
Location
Finland
Website
urjaman.dy.fi
I was compiling something else and hit this thing. I was able to continue compilation just by commenting out the using ::stuff lines in that cmath that were problematic. Not a real solution but I guess if your code doesnt use the long double functions it is ok.
 
Top