Hi everybody,
I've installed the latest SDK 53.30 on top of AMIGAOS 4.1 FE.
I'm compiling in the Shell, using GCC version 4.2.4.
The problem I'm having is with strings. I don't really understand them.
I've looked around and I can't even do a strcpy. It's pretty frustrating.
#include <stdio.h>
#include <string.h>
#include <proto/intuition.h>
UBYTE *taxString = "100%";
UBYTE *taxPass = "10%";
int void(main) {
strcpy(taxString, taxPass);
printf ("Tax String: %s\n", taxString);
}
I can get the code to compile in GCC but it throws a Guru Meditation Error when I run it.
I'm also placing taxString in a StringObject and it's throwing the same Guru.
I'm not sure what I'm doing wrong. I've played around with the code a lot, but I can't get it to work.
- Thanks for the help