Assembly Question [message #749213] |
Tue, 25 October 2011 01:00 |
Eclipse User |
|
|
|
Hi, Everyone.
I am new to this forums and I was wondering where could I post questions I have about eclipse? I am currently running c language eclipse and I was wondering how to link my assembly function I made to my main function.
I always get this error when I try to compile.
Description Resource Path Location Type
make: *** [src/addArrayinA.o] Error 1 addArray C/C++ Problem
The addArrayinA is my assembly function. I want to try and call it from my c function.
Here is my c function:
extern int addArrayinA(int *numbers, int count);
int main(void) {
int mynumbers[10]={1,2,3,4,5,6,7,8,9,0};
int sum;
sum = addArrayinA(mynumbers, 10); // Here is where I want to pass a value to my assembly function
printf("\nThe sum of array computed in assembly is : %d ",sum);
return EXIT_SUCCESS;
}
What am I doing wrong?
|
|
|
Powered by
FUDForum. Page generated in 0.06538 seconds