Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Questions About Eclipse(How can I link my assembly function to my main function?)
Questions About Eclipse [message #748907] Tue, 25 October 2011 00:15 Go to next message
MexterO  is currently offline MexterO Friend
Messages: 2
Registered: October 2011
Junior Member
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);
printf("\nThe sum of array computed in assembly is : %d ",sum);


return EXIT_SUCCESS;
}

What am I doing wrong?
Re: Questions About Eclipse [message #748926 is a reply to message #748907] Tue, 25 October 2011 00:32 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.10.24 18:15, MexterO wrote:
> 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);
> printf("\nThe sum of array computed in assembly is : %d ",sum);
>
>
> return EXIT_SUCCESS;
> }
>
> What am I doing wrong?

This is the right forum for asking about Eclipse workbench, workspaces,
projects, etc., but not the best for C/C++ slanted questions involving
Eclipse. For that, you should ask in the Eclipse CDT forum.
Previous Topic:Size of Classic vs. IDE for Java Developers
Next Topic:Upgrading from Ganymede on Windows
Goto Forum:
  


Current Time: Tue Mar 19 10:20:08 GMT 2024

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

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

Back to the top