Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22017

Initialization issue of an array with gcc 4.8.5

$
0
0

For an assignment like this

float sums[feature_column] = {0.0};

where feature_column is integer, I get this error on gcc 4.8.5

error: variable "sums" may not be initialized

How can I solve that? Isn't {0.0} an initialization?


Viewing all articles
Browse latest Browse all 22017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>