Re: 64-bit gdb: invalid decimal 0x22DBF0

2013-07-27 Thread Daniel Brown
I have also ran into this problem, in my case though I have managed to reduce the issue down to an fgets call when reading a pipe. The following code causes the issue for me if I try and debug it: #include stdio.h #include stdlib.h int main(int argc, char** argv) { char out[100] = {0};

Re: Win32 error in C program using openmp and fork()

2013-07-24 Thread Daniel Brown
Works perfectly! Been running my code since yesterday and no issues so far. Thanks for the quick fix, Daniel On 23/07/2013 15:39, Corinna Vinschen wrote: On Jul 23 16:18, Corinna Vinschen wrote: On Jul 23 15:08, Corinna Vinschen wrote: On Jul 23 13:28, Daniel Brown wrote: and that still had

Re: Win32 error in C program using openmp and fork()

2013-07-23 Thread Daniel Brown
, Daniel On 22/07/2013 09:06, Corinna Vinschen wrote: On Jul 20 19:30, Daniel Brown wrote: Hi, So I have some code I am trying to port to Cygwin but I am getting the error: fatal error in forked process - failed to create new win32 semaphore, Win32 error 87 when calling fork() in a C program when

Re: Win32 error in C program using openmp and fork()

2013-07-23 Thread Daniel Brown
I've wiped my old version of Cygwin and installed it fresh on my computer and 1.7.21 doesn't work for me, either 32 or 64 bit. I have tried a Win 7 x86 virtual machine and it worked, on a Win 8 x86 virtual machine though I see the same error. Therefore I guess it is a Windows 8 issue unless you

Re: Win32 error in C program using openmp and fork()

2013-07-21 Thread Daniel Brown
Hi Larry, Ah I attached it as a text file to the last email but that didn't work apparently, here it is... Cygwin Configuration Diagnostics Current System Time: Sat Jul 20 18:05:14 2013 Windows 8 Professional N Ver 6.2 Build 9200 Running under WOW64 on AMD64 Path: C:\Program

Win32 error in C program using openmp and fork()

2013-07-20 Thread Daniel Brown
Hi, So I have some code I am trying to port to Cygwin but I am getting the error: fatal error in forked process - failed to create new win32 semaphore, Win32 error 87 when calling fork() in a C program when openmp code has been used beforehand. I've got the following test code which reduces the

using an MSVC C DLL with Cygwin gcc

2012-08-17 Thread Daniel Brown
Hi all, So I have a C dll written in MSVC which is being called by a Cygwin programmed compiled with gcc. So far it all works ok apart from when I try and pass an array that the dll should then change. For example I have this in the dll: __declspec(dllexport) void array_read_write(double