I'm trying to follow a tutorial which teach how to install and run an emulator in gentoo, I'm actually running it in Fedora which is doing pretty good.
at some point the guy from the tutorial ask me to type a little text file call autolog.c including the following
execlp( "login", "login", "-f", "mame", 0);
and later he ask me to run this
gcc -o autolog autolog.c
in order to compile it
when I try to do that i get an error in my terminal like this
[mame@localhost ~]$ gcc -o autolog autolog.c
autolog.c: In function ‘main’:
autolog.c:3: warning: incompatible implicit declaration of built-in function ‘execlp’
since I don't know anything about c, I have no idea what the terminal is trying to tell me, if somebody can point me out in my error and tell me how can I change it in order to be able to compile it correctly.
I will really appreciate
Try including the unistd header file as follows and then compile the code.
I'll try that to see what happens
|All times are GMT -5. The time now is 06:26 PM.|