[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Problem building avr-gcc on MinGW
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Problem building avr-gcc on MinGW |
Date: |
Thu, 6 Feb 2003 10:06:31 +0100 (MET) |
>I think I am almost through building an AVR cross compiler on MinGW.
>There seems to be only a little problem left. When linking
>collect2.exe I get unresolved symbols kill, pipe, and fork:
% fgrep kill /junk/avr-gcc/work/gcc-3.3.2002.09.10/gcc/collect2.c
kill (getpid (), signo);
OK, in that case, you're lucky. "raise(signo);" should do the same
using only standard C functions.
With pipe() and fork(), things are going to become more difficult.
Under Unix, fork() creates a new process by cloning the current
process 1:1. (This is the only way to create a new process under
Unix.) AFAICT, there is no equivalent to this technique on Windows.
The child process is then often set up to execute the image of
a new program in the context of this process. IMHO, the combined
action of this fork() + exec*() [execve, execvl, ...] is about the
same that DOS/Windows would describe as exec().
Still, you gotta figure out how to establish a pipe between both
processes.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/