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

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

2014-07-23 Thread Óscar Fuentes
Suresh Govindachar 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 and so foll

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

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 : > Ray Donnelly > 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 issu

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

2014-07-23 Thread Óscar Fuentes
Ray Donnelly 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 goal is to use the

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 so

Re: [Mingw-w64-public] MSYS2 issues

2014-07-23 Thread Ruben Van Boxem
2014-07-23 11:21 GMT+02:00 Jim Michaels : > 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 is last and MS

Re: [Mingw-w64-public] MSYS2 issues

2014-07-23 Thread Jim Michaels
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 is last and MSYS path is before that. since searching for exec

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 : > 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 > static inline pid_t fork(void); > void main() {} > > $ PATH=