incompatible compilation error built-in function ‘execl’

S

srikanth

I am compiling crashme source code on windows using cywin and i am
facing some compilation error.

Error:crashme.c: In function 'vfork_main':
crashme.c:594: warning: incompatible implicit declaration of built-in
function ‘execl’

Though the source code had unistd.h included, but still the error
persisting. Kindly help me how to fix this issue.

FYI, I am compiling a program called crashme located at
(people.delphiforums.com/gjc/crashme.zip) for testing some kernal
patches.

Thanks in advance.
 
K

Keith Thompson

srikanth said:
I am compiling crashme source code on windows using cywin and i am
facing some compilation error.

Error:crashme.c: In function 'vfork_main':
crashme.c:594: warning: incompatible implicit declaration of built-in
function ‘execl’

Though the source code had unistd.h included, but still the error
persisting. Kindly help me how to fix this issue.

FYI, I am compiling a program called crashme located at
(people.delphiforums.com/gjc/crashme.zip) for testing some kernal
patches.

This turns out to be a Unix-specific issue.

The "#include <unistd.h>" is there, but it's surrounded by "#ifdef
linux"; Cygwin is not Linux, so "linux" is not defined.

See the answer I just posted at
http://stackoverflow.com/questions/8021829/incompatible-compilation-error-built-in-function-execl/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,952
Messages
2,570,115
Members
46,702
Latest member
TheronM691

Latest Threads

Top