no visible global function definition issue