Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Assembly Question (How do I link assembly function to c main function?)
Assembly Question [message #749213] Tue, 25 October 2011 01:00
Eclipse UserFriend
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?
Previous Topic:Cannot save debug configuration as shared file
Next Topic:Eclipse can not find library even though it exists.
Goto Forum:
  


Current Time: Mon Jul 14 11:31:44 EDT 2025

Powered by FUDForum. Page generated in 0.06538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top