You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not compile release 003_005_002 under Slackware 14.2.
I'm using gcc 7.2.0
A snippet of my compiler output where the problem occurs:
[ 98%] Built target uhd_cal_tx_iq_balance /tmp/SBo/UHD-Mirror-release_003_005_002/host/utils/usrp_n2xx_simple_net_burner.cpp: In function ‘bool does_image_exist(std::string)’: /tmp/SBo/UHD-Mirror-release_003_005_002/host/utils/usrp_n2xx_simple_net_burner.cpp:67:12: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return return ifile;
In my case i've locally added
Gentlemen.
I could not compile release 003_005_002 under Slackware 14.2.
I'm using gcc 7.2.0
A snippet of my compiler output where the problem occurs:
[ 98%] Built target uhd_cal_tx_iq_balance /tmp/SBo/UHD-Mirror-release_003_005_002/host/utils/usrp_n2xx_simple_net_burner.cpp: In function ‘bool does_image_exist(std::string)’: /tmp/SBo/UHD-Mirror-release_003_005_002/host/utils/usrp_n2xx_simple_net_burner.cpp:67:12: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return return ifile;
In my case i've locally added
std::ifstream ifile;
ifile.open( (char*) image_filepath.c_str() );
return ! ifile.fail();
Hope it helps
The text was updated successfully, but these errors were encountered: