Thanks Mark,
 The APIs came at a later level of glibc than you must have. I have
2.2.4-21. BTW I made an error with waitpid() anyway. The 3rd parameter
shouldn't have been 1 in the 1st place.

> -----Original Message-----
> I can't get it to compile at all.  On most of my systems, I
> don't have a
> spawn.h file.  On those that do, I get:
> /tmp/cc05Ni6H.o: In function `main':
> /tmp/cc05Ni6H.o(.text+0x1c): undefined reference to
> `posix_spawn_file_actions_init'
> /tmp/cc05Ni6H.o(.text+0x20): undefined reference to
> `posix_spawn_file_actions_adddup2'
> /tmp/cc05Ni6H.o(.text+0x28): undefined reference to `posix_spawnp'
> /tmp/cc05Ni6H.o(.text+0x3c): undefined reference to
> `posix_spawn_file_actions_destroy'
> collect2: ld returned 1 exit status

Reply via email to