Last active
August 29, 2015 14:06
-
-
Save lazyfrosch/363c232ad6bc134278f1 to your computer and use it in GitHub Desktop.
Boost Lexer on ppc64el
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ uname -a | |
| Linux pastel 3.13-1-powerpc64le #1 SMP Debian 3.13.4-1 (2014-02-22) ppc64le GNU/Linux | |
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ g++ test_double.cpp | |
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ ./a.out | |
| 7.3 | |
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ g++ test_float.cpp | |
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ ./a.out | |
| -7.3 | |
| (unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ dpkg -l libboost1.55-dev | |
| Desired=Unknown/Install/Remove/Purge/Hold | |
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | |
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | |
| ||/ Name Version Architecture Description | |
| +++-===========================-==================-==================-============================================================ | |
| ii libboost1.55-dev:ppc64el 1.55.0+dfsg-2 ppc64el Boost C++ Libraries development files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <boost/lexical_cast.hpp> | |
| #include <iostream> | |
| int main(int argc, char **argv) | |
| { | |
| std::cout << boost::lexical_cast<double>("-7.3") << std::endl; | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <boost/lexical_cast.hpp> | |
| #include <iostream> | |
| int main(int argc, char **argv) | |
| { | |
| std::cout << boost::lexical_cast<float>("-7.3") << std::endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment