problem with unistd.h and wait.h library.

Want to help the VideoLAN project? Designers, testers, translators, please come...
This is NOT about GETTING some help.
Forum rules
Please read the forum's rules carefully before posting. This forum should not be used to post VLC usage related questions.
hecram
Blank Cone
Blank Cone
Posts: 21
Joined: 10 Dec 2007 19:10
VLC version: 0.8.6.d
Operating System: winXP/linux

problem with unistd.h and wait.h library.

Postby hecram » 05 May 2008 01:58

Hi I am doing some changes in some files. I am trying to execute a fork() and waitpid in the ts.c file inside the /modules/demux/ directory. To achieve that I have introduced the unistd.h and sys/wait.h library to compile the file.
The problem is the make don´t let compile the file telling me the following:

.../modules/demux/ts.c: undefined reference to '_fork';
.../modules/demux/ts.c: undefined reference to '_waitpid'

I don´t know why it is giving me that problem if I have introduce the libraries at the beginning of the file:

#include <unistd.h>
#include <sys/wait.h>

If anyone could tell me which is being my programmation error I would be very grateful.
thank you.
Héctor Rámila Vicario.
Telecommunicaton Engineer UPC Barcelona.

Return to “Contribute and help the VideoLAN project”

Who is online

Users browsing this forum: No registered users and 7 guests