Paul Moore | 26 Mar 17:35 2015
Picon

Maintaining a msys installation with mingw-get

Some time ago, I set up a local installation of msys with mingw-get
(command line version, 0.6.2-beta-20131004-1). Unfortunately I can't
remember exactly what packages I installed, and I'd now like to
replicate the environment on another PC.

Is there a command I can use to say "list the packaged I have
installed in C:\Utils\Msys"? As far as I can see, mingw-get list and
mingw-get show display everything, installed or not.

Thanks,
Paul

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
(Continue reading)

Ilias Miroslav | 24 Mar 13:58 2015
Picon

missing sal.h in the default MinGW installation

Greetings, dear experts,

I am trying to compile simple testing MPI software using MS-MPI:  

C:\Users\milias\Desktop\Test-GNU-MPI>gcc -I "C:\Program Files (x86)\Microsoft SDKs\MPI\Include" 
-L "C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64"   mpi
-test.c  libmspi.a
In file included from mpi-test.c:2:0:
C:\Program Files (x86)\Microsoft SDKs\MPI\Include/mpi.h:50:17: fatal error: sal.h: No such file or directory
 #include <sal.h>
                 ^
compilation terminated.

(The libmspi.a was prepared according to http://www.symscape.com/configure-msmpi-for-mingw-w64).
The MinGW64 suite contains the sal.h include file, but this file is not in the default MinGW packages.  Any
help please which MinGW package to install to get the missing sal.h file ?

Yours, Miro
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
(Continue reading)

chuck.oliveira | 23 Mar 02:55 2015
Picon
Picon

Custom ICON with mingw


Hello Mingw users:

I am trying to create a custon ICON for my mingw win32 app on Windown 7.

I install mingw and followed the "Building Win32 GUI Application Using Mingw":


I was able to get the application to compile and operate properly as describe by the website. Thanks.

I then edited the ICOM (Win32/res/Application.ico) with the GreenFish ICON editor. Recompiled and ran the app.

Still the same default icon.

Has anyone had any luck creating a custom ICON  using mingw in Win7  (32 bit)?

Thanks
Chuck

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Graeme | 19 Mar 13:32 2015
Picon

g++ string array in struct crash

This crashes mingw g++ (GCC) 4.8.1, hangs linux - with bigger array.

>g++ stringArray.cc

#include <string>
struct T {
   std::string s[4065];
};
int main() {
   T m = {"x", "y"};
} 

--
View this message in context: http://mingw-users.1079350.n2.nabble.com/g-string-array-in-struct-crash-tp7583401.html
Sent from the MinGW-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Earnie | 18 Mar 18:19 2015
Picon
Picon

Re: [MinGW-users] _wfindnext64i32 not declared and other build errors

> 
> [*] Sure, it is *possible* to configure MinGW to work with MSVCR80.DLL 
> and its later derivatives, but I am not going to encourage it.
> 

But if you do be sure that all of the application, including any DLL used by
it, is using the same MSVCR library to avoid memory collisions.  Each MSVC
Runtime DLL would manage its own version of its memory pointer stack.

--
Earnie

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

John Pote | 18 Mar 00:13 2015
Picon

Reading keyboard/keys state in Win XP

I'm currently working on a wrapper program to help test a controller 
task/module for a  keypad/LCD display module that is part of an embedded 
system. I wish to use the PC's keyboard to substitute for the keypad on 
the LCD display module. As part of its operation the controller task 
needs to know when a key is pressed, while it is being held down and 
when it is released. ie the key state.

Does anyone know how I might be able to read the state of the PC's 
keyboard in a program compiled by MinGW so I can get key down and key up 
events or just read the state of the keyboard so I can determine key 
down and key up events.

Hope someone can help. Thanks for everyones time and effort in keeping 
MinGW working and up to date.

John

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Greg Jung | 17 Mar 06:52 2015
Picon

Two bugs(?) in the MSYS shell

1. I only recently tried "$ make -j 4" multiprocessor option with MSYS and discovered that it hangs.  Then the processes remain even after I killed the terminal process from another msys shell. 
2. environment variable that start with "+" get transformed in an way which is werd (and inconvenient). 
In gnudatalanguage (GDL) we use "+{path}" values in  to initialize a recursive
directory search path.  When run from a DOS shell there is of course no change in the variable
and the following resuls:

~~~~
GDL> print,getenv("GDL_LIBRARY")
+D:/programs/gnudatalanguage/lib
GDL> print,!Path
D:/home/greg/coyote/public;D:/home/greg/coyote;D:/home/greg/testsuite/benchmark;D:/home/greg/testsui
te;D:/home/greg;D:/programs/gnudatalanguage/lib/astronv61/pro/debug;D:/programs/gnudatalanguage/lib/
astronv61/pro;D:/programs/gnudatalanguage/lib/dicom;D:/programs/gnudatalanguage/lib/envi;D:/programs
/gnudatalanguage/lib/new;D:/programs/gnudatalanguage/lib/testsuite/benchmark;D:/programs/gnudatalang
uage/lib/testsuite;D:/programs/gnudatalanguage/lib
~~~~

the intializing routine used expand_path("+{library location}) to bring in all subdirectories.
MSYS modifies the environment variable with a "+" by inserting the native path to /usr, as such:

~~~~
greg <at> Homerw7 /d/programs/gnudatalanguage
$ uname --a
MINGW32_NT-6.1 HOMERW7 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

greg <at> Homerw7 /d/programs/gnudatalanguage
$ gdl
% Function not found: PATH_SEP
print,getenv("GDL_LIBRARY")
+D;E:\mingw\msys\1.0\programs\gnudatalanguage\lib
print,!path
E:\mingw\msys\1.0\programs\gnudatalanguage\lib
~~~~

just reporting: there's no urgency from my perspective.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Xi Shen | 16 Mar 06:15 2015
Picon

Please help find these DLLs

Hi,

I need to use the library, https://github.com/fommil/netlib-java, which depends on OpenBLAS which depends on several DLLs from mingw. They ar:
  • libgfortran-1-3.dll
  • libquadmath-0.dll
  • libgcc_s_seh-1.dll
It is possible the given name are outdated, but should have some replacement.

I just installed the 0.6.2-beta mingw, and have installed a couple of packages I think should be relevant. But I could only find some DLLs with similar name:
  • libgfortran-3.dll
  • libquadmath-0.dll
  • libgcc_s_dw2-1.dll
I would like to know if the DLLs in the bottom list compatible with the ones in the upper list. How to find those exactly matches?


Thanks,
David


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Jacob Hartmann | 15 Mar 02:11 2015
Picon

_wfindnext64i32 not declared and other build errors

Hello! I am having quite a bit of trouble with Mingw, and hopefully someone can help me.

About a week ago, I set out to build CEGUI 8.4 in Windows 7. I am using Mingw (with MSYS). I did the standard cmake configuration and generation of the necessary files, but the build failed. "make install" complained that _wfindnext64i32 was not declared in the scope. 

At first, I contacted the CEGUI team on the forum. I give a lot more detail there (cmake output and cache), and you can find it here: http://cegui.org.uk/forum/viewtopic.php?f=10&t=6988 . We also did a fair amount of checking files and messing around with the code. Now, they asked me to do a pull request and make some more minor changes to the code. It /kind of/ fixed my wfindnext error.

The version I have now includes files that normally aren't for Windows (types.h, stat.h, dirent.h, and fnmatch.h).

So the new issue here is that "fnmatch.h" doesn't exist. From what I remember, this isn't included in Mingw, but this project needs it at this point. The code and our detailed troubleshooting can be found at the pull request and the forum. Keep in mind that all of this is to fix the original problem, wfindnext.


The CEGUI developer hasn't really got a clue on what is wrong, and neither do I. Any help or information that you can give would be appreciated. Additionally, if you want me to copy what we said in the forum and PR for any reason, just let me know and I will do it. Thank you in advance!

Cheers,
Jacob


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Help: how to export function using makefile in mingw

Hello, everybody :

        i compile a exe file, i want to export some functions.

        the code is :

#define LIBIMOBILEDEVICE_API __declspec( dllexport )

LIBIMOBILEDEVICE_API void print_usage(int argc, char **argv)
{
char *name = NULL;

name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0]));
printf("Prints device name or a list of attached devices.\n\n");
printf("  The UDID is a 40-digit hexadecimal number of the device\n");
printf("  for which the name should be retrieved.\n\n");
printf("  -l, --list\t\tlist UDID of all attached devices\n");
printf("  -d, --debug\t\tenable communication debugging\n");
printf("  -h, --help\t\tprints usage information\n");
printf("\n");
printf("Homepage: <http://libimobiledevice.org>\n");
}

        i run make command, the exe file export nothing.

        i write a simple code, using __declspec( dllexport ), then run gcc, the exe have export function.

        i want to know how to export functions using makefile .

        Thank you !

        


Best Regards

Jackie Ji

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Earnie | 10 Mar 22:43 2015
Picon
Picon

FW: Using xaudio2.h with Mingw GCC gives build errors.

> Now xaudio on my computer is found only in C:\Program Files 
> (x86)\Microsoft DirectX SDK (August 2008)\Include

32bit headers?

> Now I get errors from the following lines in Xaudio2.h

> // XAudio 2.2 (August 2008 SDK)
> DEFINE_CLSID(XAudio2, b802058a, 464a, 42db, bc, 10, b6, 50, d6, f2, 
> 58, 6a);  DEFINE_CLSID(XAudio2_Debug, 97dfb7e7, 5161, 4015, 87, a9, 
> c7, 9e, 6a, 19, 52, cc);
> 
> The errors are:
> 
> C:\mingw64\opt\Directx\Include\xaudio2.h|31|error: pasting "b802058a" 
> and "-" does not give a valid preprocessing token|
> C:\mingw64\opt\Directx\Include\comdecl.h|40|note: in definition of 
> macro 'DEFINE_CLSID'|

64bit Compiler?
Wrong mailing list.

--
Earnie

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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