Compile tips and tricks: Difference between revisions

From HPCWIKI
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 />")
 
Line 1: Line 1:
== 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 />

Revision as of 12:33, 17 December 2023

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();

References