Compile tips and tricks: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== GSL-config not found == <code>sudo apt install libgsl-dev</code><ref>https://askubuntu.com/questions/913493/gsl-config-not-found</ref> == References == <references />") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Boost is not available == | |||
This issue of missing libraries can be caught during configuration phase itself when you are running ./configure to check all the required configuration. | |||
under Ubuntu we can install Boost [[library]] as | |||
apt-get install libboost-all-dev | |||
== GSL-config not found == | == GSL-config not found == | ||
<code>sudo apt install libgsl-dev</code><ref>https://askubuntu.com/questions/913493/gsl-config-not-found</ref> | <code>sudo apt install libgsl-dev</code><ref>https://askubuntu.com/questions/913493/gsl-config-not-found</ref> | ||
== Cannot convert 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'bool' in return == | |||
Instead return if the stream is <code>good()</code>:<ref>https://stackoverflow.com/questions/67831917/cannot-convert-stdifstream-aka-stdbasic-ifstreamchar-to-bool-in-re</ref> | |||
<code>return ifile.good();</code> | |||
== References == | == References == | ||
<references /> | <references /> |
Latest revision as of 10:20, 19 December 2023
Boost is not available
This issue of missing libraries can be caught during configuration phase itself when you are running ./configure to check all the required configuration.
under Ubuntu we can install Boost library as
apt-get install libboost-all-dev
GSL-config not found
sudo apt install libgsl-dev
[1]
Cannot convert 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'bool' in return
Instead return if the stream is good()
:[2]
return ifile.good();