Forum Discussion
Altera_Forum
Honored Contributor
20 years agoReboot when running program with two .c files
I wrote a very simple test program that runs just fine: int main(int argc, char *argv)
{
unsigned char *p = (unsigned char *) malloc(2048*sizeof(unsigned char));
printf("Allocation via ma...
Altera_Forum
Honored Contributor
20 years agoNever mind - I figured out the problem. It was indeed a linker problem, or rather a build problem. I fired up Eclipse and created a project in the IDE, using one of the busybox Makefiles as a template. My test program, consisting of two .c files, then ran correctly.
Thanks again, -SQ