[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: compilation problem
From: Robert Jan Schaper <r.schaper () chello ! nl>
Date: 2001-05-03 8:12:55
[Download RAW message or body]
> 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;
This is your bug, just make it a pointer to a const char and your problem
will go away. Remember that 'const char *s ' is not the same as a 'char *
const s' so you can change the value of s.
>
> s=txt;
> while (strlen(s)>0)
> {
> ....
> s++;
> }
> }
>
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic