Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ruben Van Boxem
2014-07-22 23:37 GMT+02:00 Ray Donnelly mingw.andr...@gmail.com: Hello, While porting msysGit to MSYS2/MinGW-w64 we ran into this: $ PATH=/mingw64/bin:$PATH gcc --version gcc.exe (Rev1, Built by MSYS2 project) 4.9.1 $ cat test.c #include unistd.h static inline pid_t fork(void); void

Re: [Mingw-w64-public] MSYS2 issues

2014-07-23 Thread Ruben Van Boxem
2014-07-23 11:21 GMT+02:00 Jim Michaels jmich...@yahoo.com: you can rename the compiler's make.exe to make.ex, that will make it go away without deleting it, if you need it back, you can always rename it. another option is to simply change your PATH environment variable so that the compiler

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ray Donnelly
Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my goal is to use the minimum amount of characters and

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Óscar Fuentes
Ray Donnelly mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ruben Van Boxem
2014-07-23 13:32 GMT+02:00 Óscar Fuentes o...@wanadoo.es: Ray Donnelly mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Suresh Govindachar
On 7/23/2014 4:39 AM, Ruben Van Boxem wrote: 2014-07-23 13:32 GMT+02:00 Óscar Fuentes o...@wanadoo.es mailto:o...@wanadoo.es: Ray Donnelly mingw.andr...@gmail.com mailto:mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread lh_mouse
You can omit return 0; in main() in C++ only. ISO/IEC 14882 Programming languages -- C++ 3.6.1 Main function [basic.start.main] 5 ... If control reaches the end of main without encountering a return statement, the effect is that of executing return 0; --

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Óscar Fuentes
Suresh Govindachar sgovindac...@yahoo.com writes: This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my goal is to use the minimum amount of characters

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread lh_mouse
EDIT: since C99, reaching the } that terminates the main function returns a value of 0. 'The returned value is undefined' is not true. If the return value is used(in the case of main(), the host environment cares about it), you get undefined behavior and give the compiler and runtime the right