I'm currently converting some VSC code to this compiler and i am getting
"code has no effect" when ever I compile a free() function. I even used the sample code in the manual and get the same result. Does anyone know if free() works and if there is a workaround.
uP
18f87J10
usage
free((void *)bpb->bpb1);
even this give an error
int *x;
x = malloc(10);
free(x);
Regards
Robert
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Mar 30, 2007 2:11 pm
I couldn't get the manual's example to work either, as written.
I gave up on it.
What happens if you compile the example file, Ex_Malloc.c ?
Make a project and use that file as the main source file.
Edit the file and change the #include file to 18F87J10.H.
It uses free() and it compiled OK for me with PCH vs. 3.249 and 4.030.
I don't know if it works, but it did compile.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum