Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile release_003_005_002 #1

Open
andrersimoes opened this issue Nov 28, 2017 · 0 comments
Open

Can't compile release_003_005_002 #1

andrersimoes opened this issue Nov 28, 2017 · 0 comments

Comments

@andrersimoes
Copy link

andrersimoes commented Nov 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant