compilation problem

Daniel Berlin dan at www.cgsoftware.com
Thu May 3 08:22:29 BST 2001



On Thu, 3 May 2001, Eric KLUMPP wrote:

> Hello,
>
> I am new on this list. I am french and I develop with kdevelop since 3 years.
>
> I just have installed the Mandrake 8.0 that install kdevelop 1.4.1, and now I have the compilation error :
> "cannot convert "const char *" to "char *" in assignment"
> What I do is something like this :
> <	void test(const char *txt)
> 	{
> 		char *s;
>
> 		s=txt;

This is the error, right here.
You are passing in a const char *, then trying to assign it to a char *,w
ithout explicility casting it.

Since this cast will remove qualifiers, it must be explicit.

> 		while (strlen(s)>0)
> 		{
> 			....
> 			s++;
> 		}
> 	}
> >
>
> I had the same problem when I tried the Redhat 7.0 but not with the Mandrake 7.2. I think the problem comes from the version of gcc (2.96), but before trying to change to an older version, I prefer to have the confirmation.
>
> If someone has a solution....
> Thanks
>
> Eric
>
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list