| ??? 10/23/02 05:27 Read: times |
#31260 - RE: [C51]Problem "Ilegal pointer convers |
Probably because you are converting a pointer to a string to a character.
When you define str1[8], the variable str1 is really a pointer that points to the 8 bytes of memory set aside for str1. When you define str1 as just "char str1", str1 is actually one byte of memory set aside to hold a single character. They aren't the same thing. Change your extern line to: extern xdata char str1[]; And it should compile and link fine. I justr tied it under Keil. Craig Steiner |
| Topic | Author | Date |
| [C51]Problem "Ilegal pointer conversion" | 01/01/70 00:00 | |
| RE: [C51]Problem "Ilegal pointer convers | 01/01/70 00:00 | |
| RE: [C51]Problem steiner | 01/01/70 00:00 | |
| RE: [C51]Problem "Ilegal pointer conversion&q | 01/01/70 00:00 | |
| RE: [C51]Problem \\\\\\\\ | 01/01/70 00:00 | |
| RE: Code formatting in posts | 01/01/70 00:00 | |
| RE: Code formatting in posts - retry | 01/01/70 00:00 | |
| Erroneous External | 01/01/70 00:00 | |
| RE: [C51]Problem \ | 01/01/70 00:00 | |
| thanx Craig Steiner | 01/01/70 00:00 | |
RE: [C51]Problem "Ilegal pointer conversion&q | 01/01/70 00:00 |



