Your function is missing its return. The <<
operator should return a reference to the stream that it was using so that you can chain operations together like
cout << foo << bar << foobar;
To fix your function you just need to return the ostream
that you are using in your function
inline friend std::ostream& operator << ( std::ostream& os, const sc_float &v)
{
//...
os << temp;
return os;// <-- this returns the stream that we are unsing so it can be used by other functions
}