Keith Marshall | 29 Aug 16:24 2014
Picon
Picon

Continuing support for Windows Pre-XP in MinGW?

Folks,

If you still use Windows versions pre-dating WinXP, you need to read
this; we may not be able to offer you continuing support!

Following my recent withdrawal of the Version 4.x MinGW runtime and
w32api libraries from general release, (on account of the excessive
number of unresolved regressions which they've introduced), I've been
reviewing some of the related bug reports, with a view to backporting
some solutions to an continuation of the version 3.x series.  Three,
which I'd like to address soonest, are:
http://sourceforge.net/p/mingw/bugs/1621/ (aspect #2)
http://sourceforge.net/p/mingw/bugs/2098/
http://sourceforge.net/p/mingw/bugs/2106/

Unfortunately, the last of these raises an issue, (which I suspect is
already present with existing 3.x dirent.[hc] implementations), which
makes it increasingly difficult for us to continue supporting users of
Windows versions predating WinXP ... the _USE_32BIT_TIME_T insanity!

The problem is that we *must* provide an implementation which is
deterministically independent of the _USE_32BIT_TIME_T nonsense, so
users are not constrained by what we choose when we build libmingwex.a;
this precludes simple _findfirst()/_findnext() dependencies, and forces
us to look to _findfirst64()/_findnext64() or similar, which behave
completely independently of _USE_32BIT_TIME_T.

As I've noted on ticket #2106, the _findfirst64()/_findnext64()
combination *appears* to be the most widely acceptable; the MSDN
reference, which I cite on the ticket, suggests that this pair of
(Continue reading)

Baruch Youssin | 28 Aug 09:58 2014
Picon

Re: Which msvcrt.dll does MinGW use?

I continued this topic as a private conversation with Eli Zaretskii 
<eliz@...> as I was not sure it is worthwhile for the list.
By Eli's suggestion, I post here the entire track this far, starting 
with the old and finishing with my comments on the most recent message 
from Eli.

On 08/26/2014 04:41 PM, Baruch Youssin wrote:
> Many thanks for your prompt clarification.
> As I found this article 
>
http://kobyk.wordpress.com/2007/07/20/dynamically-linking-with-msvcrtdll-using-visual-c-2005/ 
> , I understood that indeed msvcrt.dll supplied by Windows, is updated 
> and the difference between different verstions of msvcr.. is not in 
> the standard C runtime library but rather in other MS 
> functionalities.  Thus, I understood why linking against it is the 
> best solution for MinGW.
>
> This helped me decide that the native time and time zone functions 
> provided by MS, are unreliable to the point that they should not be 
> used.  (I had one case of difftime returning the first parameter 
> instead of the difference on Windows XP SP3 under MinGW against 
> msvcrt.dll - which is not a big deal as a call to difftime under MinGW 
> can be replaced by subtracting time_t values - and another case of 
> gmtime getting the current time zone offset incorrectly on Windows 
> Server 2008 under VS2010 against msvcr100.dll.)
>
> Many thanks again
> Baruch Youssin
>
> On 08/25/2014 09:44 PM, Eli Zaretskii wrote:
(Continue reading)

Thomas Martitz | 27 Aug 09:14 2014

Plugins on win32

Hello,

my name is Thomas and I'm a computer scientist from Berlin, working in 
the embedded industry. In my spare time I work in the Geany IDE and Rockbox.

I'm struggling to make plugins on win32 work (for Geany), using dll 
import/export mechanism. The following two files display my case:

--- main.c i586-mingw32msvc-gcc main.c -o main
#include <windows.h>
#include <stdio.h>

__declspec(dllexport)
void foo(const char *s)
{
     printf("%s\n", s);
}

int main()
{
     void *p = LoadLibrary("plugin.dll");

     void (*fn)() = (void *)GetProcAddress(p, "plugin_func");

     fn();

     return 0;
}

--- plugin.c i586-mingw32msvc-gcc -shared -Wl,--dll 
(Continue reading)

Vincent Belaïche | 26 Aug 11:52 2014
Picon

rsync.exe: *** Couldn't reserve space for cygwin's heap (0x71110000 <0x5D0000>) in child, Win32 error 0

Hello,

I have installed MSYS on a new machine running Windows 7 64bit. I have manually installed rsync.exe and all
the dll needed by it.

Now when I type `rsync.exe --help' I get the following message:

-----------------------------------
m.AllocationBase 0x0, m.BaseAddress 0x71110000, m.RegionSize 0xF0000, m.State 0x10000
C:\Nos_Programmes\msys\bin\rsync.exe: *** Couldn't reserve space for cygwin's heap (0x71110000
<0x5D0000>) in child, Win32 error 0
-----------------------------------

`env' give the following output:
-----------------------------------
HOMEPATH=\
APPDATA=C:\Users\Administrateur\AppData\Roaming
PROGRAMW6432=C:\Program Files
TERM=cygwin
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
WINDIR=C:\Windows
COMMONPROGRAMW6432=C:\Program Files\Common Files
PUBLIC=C:\Users\Public
OLDPWD=/usr/bin
PROGRAMDATA=C:\ProgramData
USERDOMAIN=AIGLEROYAL
COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
OS=Windows_NT
ALLUSERSPROFILE=C:\ProgramData
TEMP=/tmp
(Continue reading)

sogand | 26 Aug 11:08 2014
Picon

a problem with Msys

I have a problem with msys
Here is the picture of my msys:

https://dl.dropboxusercontent.com/u/46683290/server%20error.JPG

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Baruch Youssin | 25 Aug 20:02 2014
Picon

Which msvcrt.dll does MinGW use?

The page at http://www.mingw.org/wiki/C99 says: "The MinGW port of GCC 
uses Microsoft's original (old) Visual C runtime, MSVCRT, which was 
targeted by Microsoft Visual Studio 6 (released in 1998)."

This appears to imply that MinGW does not use the version of msvcrt.dll 
supplied by Windows OS.
This agrees with Microsoft that has been saying for a while already 
http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.71%29.aspx that 
msvcrt.dll supplied by Windows OS should not be used by user applications.

I am running MinGW 4.8.1 on Windows XP SP3 and could not find any 
msvcrt.dll or msvsrxx.dll in any MinGW directories; all versions I 
found, were in system directories and in the directories of other 
applications.

So which msvcrt.dll or msvsrxx.dll does MinGW use?

Please reply to the list as I believe the answer may be helpful to others.

Thanks
Baruch Youssin

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

(Continue reading)

Eli Zaretskii | 25 Aug 17:59 2014
Picon

Re: _wfopen in current MinGW

[Please don't make this a private discussion.]

> Date: Mon, 25 Aug 2014 07:54:59 -0700
> From: Roger Pepitone <rogerpepitone@...>
> 
> > Error message: '_wfopen' was not declared in this scope
> 
> You need to include <cstdio>.
> 
> 
> I was including <cstdio> (and stdio.h, and cwchar, and wchar.h)

Then please show a minimal complete source file that can be used to
reproduce the problem.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
(Continue reading)

Roger Pepitone | 24 Aug 21:37 2014
Picon

_wfopen in current MinGW

I'm working with some older code that compiled under MinGW in the past.
It attempts to open a file; on failure, it tries interpreting the name as Shift-JIS (codepage 932).

(simplified code)
fp = ::fopen (filename, mode);
if (fp) return fp;
#ifdef WIN32
else {
  wfilename = CP932_to_UTF16 (filename);
  wmode = CP932_to_UTF16 (mode);
  fp = _wfopen (wfilename, wmode);
  if (fp) return fp;
}

This code now breaks; _wfopen isn't included any more.  How do I update this code?

Thanks.
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
孔涛 | 23 Aug 04:32 2014
Picon

How to print fortran allocatable array in GDB?

Hi, everyone. How to print fortran allocatable array in GDB?  For example, the source file reads
--
program main
implicit none
real,dimension(5) :: a
real,dimension(:),allocatable :: b

allocate(b(10) )

call random_number(a)
call random_number(b)

deallocate(b)
end program

--
I use 'gfortran -g arr.f90 ' and use 'gdb ./a.exe' Then I got the following debug info
---------------------------------
(gdb) b 6
(gdb) b 10
(gdb) r
Starting program: D:\Documents\Projects\test/a.exe

[New Thread 6844.0x1a40]

Breakpoint 1, MAIN__ () at array.f90:6
6       allocate(b(10) )
(gdb) p a
$8 = (3.76478451e-039, 1.54142831e-044, 1.03794626e-038, -nan(0x7ffffe), 0)
(gdb) p b
$9 = (0)

(gdb) c
Continuing.

Breakpoint 2, MAIN__ () at array.f90:11
11      deallocate(b)
(gdb) p a
$10 = (0.997559547, 0.566824675, 0.965915322, 0.747927666, 0.367390871)
(gdb) p b
$11 = (0)

(gdb)
----------------------------------------
So why? How to show the variable b?




--
Have a nice day!

Kayneo

----
I saw, I came, I conquered!


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
tim | 23 Aug 04:31 2014

Microsoft-style AssemblyInfo?

I just learned today that Microsoft has a feature in dll and exe files 
that let a user right-click the file name in File Manager and see a set 
of properties for the file.

I believe that it is called "AssemblyInfo".  I'm not finding much joy in 
Googling for information, though.

Am I using the right terminology, and is there any way to fill in these 
blanks with MinGW?

TIA

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

孔涛 | 23 Aug 04:12 2014
Picon

How to configure 'sh' or 'bash' in mingw?

Hello, everyone. I am installing the default MinGW on my Win8.1-64bit system.  when I use ps, I got 'sh' is running.
but ,
-----------
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     6040       1    6040       6040    ?  500 10:01:29 /usr/bin/mintty
     8320    6040    8320       2948    0  500 10:01:30 /usr/bin/sh
     8992    8320    8992       8364    0  500 10:10:02 /usr/bin/ps
-----------

firstly: I want to use bash when I use mintty to start the MSYSsystem, how to config?
secondly, if I use sh as the default shell, what's the configuration file name? similar as '.bashrc'?
thirdly, I want to install all the man file in MSYS. How to install?

Thank you.



--
Have a nice day!

Kayneo

----
I saw, I came, I conquered!


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Gmane