This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: invalid conversion from const char** to char**


me22 wrote:
On 15/06/07, Dhiraj.Nilange@iflexsolutions.com
<Dhiraj.Nilange@iflexsolutions.com> wrote:
void fun(const char *var[]);
const char **vname;

so the call goes as:- fun(vname);

But I get compile time error for this:-
invalid conversion from const char** to char**

I don't think we can solve this one without more information.

But OP could use the full information which was withheld to find the incorrect header or similar problem which leads to the complaint. This is a common problem with legacy code, which was not diagnosed by gcc until recently (at least not by default).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]