Questions About Eclipse [message #748907] |
Tue, 25 October 2011 00:15 |
MexterO 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 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04510 seconds