dup() and dup2() ?
Posted: Mon Aug 16, 2010 8:55 pm
I have been playing with unit testing with google test for nds homebrew inside desmume.
It works great so far but I would like to have access to advance features of google test (streams redirection to be able to capture stdout) yet this require dup and dup2().
The headers for these 2 system calls are in sys\system_unistd.h so my homebrew compiles but it doesn't link,
because of undefined references to dup() and dup2().
Is this my fault ? can some other devkitarm users use dup() ans dup2() ?
If the answer is yes, could you tell me in which .a library or .o file the objects for those 2 system calls are suposed to be ?
If the answer is no, could someone send me the dup.c and dup2.c files ?
Best regards,
Lakedaemon
It works great so far but I would like to have access to advance features of google test (streams redirection to be able to capture stdout) yet this require dup and dup2().
The headers for these 2 system calls are in sys\system_unistd.h so my homebrew compiles but it doesn't link,
because of undefined references to dup() and dup2().
Is this my fault ? can some other devkitarm users use dup() ans dup2() ?
If the answer is yes, could you tell me in which .a library or .o file the objects for those 2 system calls are suposed to be ?
If the answer is no, could someone send me the dup.c and dup2.c files ?
Best regards,
Lakedaemon