well your asking for the address of G...

so:

Code:
int main()
{
   Goods_g G;
   function(&G);

//or
    Goods_g * H;
   function(H);
}