marco123
Goto Top

Error expected declaration specifiers or ... before prosys

Hallo Forum,

Beim kompilieren meiner C File erhalte ich folgenden Fehler:
error: expected declaration specifiers or ‘...’ before ‘prosys’ (prosys ist ein Systemcall, welcher selbst definiert wurde)

gauss.c:7: error: expected declaration specifiers or ‘...’ before ‘prosys’
gauss.c:7: warning: data definition has no type or storage class


der Code:
[CODE]

  1. include <stdio.h>
  2. include <linux/unistd.h>
  3. include <errno.h>

  1. define __NR_prosys 320

_syscall0(long, prosys);

main(int args, char* argv)
{
printf("Berechnung nach der Gauß-Formel \n");
printf("Die Summe ist: %d \n", prosys(argv[1]));
}


[/CODE]


vielen dank!

Content-Key: 133035

Url: https://administrator.de/contentid/133035

Printed on: April 25, 2024 at 07:04 o'clock

Member: TomboLaBomba
TomboLaBomba Jan 18, 2010 at 10:15:27 (UTC)
Goto Top
Hi Marco,

da ich die selbe Fehlermeldung habe, wäre ich an einer Lösung interessiert.

Tom