Linux | 9 Feb 12:29
Picon
Gravatar

MinGw, opendir() stat64() and related

I coded a small utility in "C" using the Code::Blocks IDE on 32 Bit
Linux for distribution. The utility searches, identifies and can delete
files with identical content. 

I also want to distribute a Windows version of the utility but can't get
it to compile and work on Windows 7 using the Mingw 4.6.3 with the
Code::Blocks IDE for Windows.

Under Windows, the complier rejects these declarations and functions:

struct stat64 lst;
stat64(path, &lst);

Using 'stat' instead of 'stat64' will complile without errors but
'opendir()' returns 0. readir() and closedir() also fail;

The code compiles and works as it should on 32 and 64 bit Linux.

I can not find the MinGW specific sources for the functions stat(),
stat64(), opendir(), readdir(), closedir() and other functions.  

'
------------------------------------------

#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
(Continue reading)

Fabian Greffrath | 7 Feb 10:01
Favicon

State of MSYS-2?

Hi mingw,

by the end of last year we discussed the starting effort of rebasing 
MSYS on current Cygwin. Has this seen any progress yet? where can I 
get more insight in this progress?

  - Fabian

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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

Dillon Sharlet | 6 Feb 23:06
Picon
Gravatar

Where is the _pei386_runtime_relocator function located?

Hello,
 
I am attempting to use clang (3.0) and mingw (gcc version 4.6.2) to build and run a simple C++ program. I'm getting unresolved external symbol on _pei386_runtime_relocator, and I just can't seem to find the right obj/lib to link to get this function. I thought I found it in crt1.o, but linking this object does not resolve the linker error.
 
Any ideas?
 
Thanks
Dillon
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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
Sinkler, Wharton | 6 Feb 15:13
Favicon

Re: Problem installing MinGW on non-networked computer

James,

I don't actually have any make.exe in my path at all.  

Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that variable is not set (at least the MSYS
shell I am using doesn't have it).  

The absence of any make.exe did cause a warning message when I installed MSYS (version 1.0.11).  However the
MSYS shell does work.  

Is the error 'CreateProcess: No such file or directory' when I attempt to compile a program possibly
related to not having a make.exe?  If so, are there additional items which need to be installed, beyond
those I listed in my original message (see bottom of current)? 

Thanks,
Wharton

From: James Yoo [mailto:james.yoo+mingw@...] 
Sent: Sunday, February 05, 2012 11:31 AM
To: MinGW Users List
Subject: Re: [Mingw-users] Problem installing MinGW on non-networked computer

I think that is a really generic error message... it could be that there's another make.exe in your path or
that a GCC_EXEC_PREFIX environment variable may be incorrectly defined...  something along those lines.
On Sun, Feb 5, 2012 at 11:02 AM, Sinkler, Wharton <Wharton.Sinkler@...> wrote:
I have been trying to get mingw installed on a computer which is not networked.  I get errors if I just copy
the normal installation scripts (mingw-get), as these apparently execute downloads.

This is a WinXP 32 bit machine.

Based on the notes on the installation web page, I've manually downloaded the items listed below which were
placed in a freshly created C:\MinGW directory and expanded.

Alas, after expanding these in C:\MinGW, and adding C:\MinGW\bin to my path I'm getting the following
error when attempting to compile a simple fortran program with C:\MinGW\bin\gfortran.exe:
       'CreateProcess: No such file or directory'.

It seems like 'CreateProcess' is missing, presumably part of the gcc compiler.  Is the list below
incomplete or incorrect?  Is there a simpler way to do this?

Thanks,
Wharton

Downloaded items:
binutils:
       - binutils-2.22-1-mingw32-src.tar.lzma
Mingw runtime (dev and dll):
       mingwrt-3.20-mingw32-dev.tar.gz
       mingwrt-3.20-mingw32-dll.tar.gz
mpc (dev and dll):
       mpc-0.8.1-1-mingw32-dev.tar.lzma
       libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
mpfr (dev and dll):
       mpfr-2.4.1-1-mingw32-dev.tar.lzma
       libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
gmp (dev and dll)
       gmp-5.0.1-1-mingw32-dev.tar.lzma
       libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
pthreads (dev and dll):
       pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
       libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
gomp:
       libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
ssp:
       libssp-4.6.1-2-mingw32-dll-0.tar.lzma
intl:
       libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
iconv (dev and dll)
       libiconv-1.14-2-mingw32-dev.tar.lzma
       libiconv-1.14-2-mingw32-dll-2.tar.lzma
gcc-core: (bin and dll)
       gcc-core-4.6.1-2-mingw32-bin.tar.lzma
       libgcc-4.6.1-2-mingw32-dll-1.tar.lzma

I also downloaded gfortran with bin and dll files:
       gcc-fortran-4.6.1-2-mingw32-bin.tar.lzma
       libgfortran-4.6.1-2-mingw32-dll-3.tar.lzma

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Sinkler, Wharton | 5 Feb 18:02
Favicon

Problem installing MinGW on non-networked computer

I have been trying to get mingw installed on a computer which is not networked.  I get errors if I just copy the
normal installation scripts (mingw-get), as these apparently execute downloads.  

This is a WinXP 32 bit machine.  

Based on the notes on the installation web page, I've manually downloaded the items listed below which were
placed in a freshly created C:\MinGW directory and expanded.  

Alas, after expanding these in C:\MinGW, and adding C:\MinGW\bin to my path I'm getting the following
error when attempting to compile a simple fortran program with C:\MinGW\bin\gfortran.exe:
	'CreateProcess: No such file or directory'.  

It seems like 'CreateProcess' is missing, presumably part of the gcc compiler.  Is the list below
incomplete or incorrect?  Is there a simpler way to do this?  

Thanks,
Wharton

Downloaded items: 
binutils:
	- binutils-2.22-1-mingw32-src.tar.lzma
Mingw runtime (dev and dll):
	mingwrt-3.20-mingw32-dev.tar.gz
	mingwrt-3.20-mingw32-dll.tar.gz
mpc (dev and dll):
	mpc-0.8.1-1-mingw32-dev.tar.lzma
	libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
mpfr (dev and dll):
	mpfr-2.4.1-1-mingw32-dev.tar.lzma
	libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
gmp (dev and dll)
	gmp-5.0.1-1-mingw32-dev.tar.lzma
	libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
pthreads (dev and dll):
	pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
	libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
gomp:
	libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
ssp:
	libssp-4.6.1-2-mingw32-dll-0.tar.lzma
intl: 
	libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
iconv (dev and dll)
	libiconv-1.14-2-mingw32-dev.tar.lzma
	libiconv-1.14-2-mingw32-dll-2.tar.lzma
gcc-core: (bin and dll)
	gcc-core-4.6.1-2-mingw32-bin.tar.lzma
	libgcc-4.6.1-2-mingw32-dll-1.tar.lzma

I also downloaded gfortran with bin and dll files:
	gcc-fortran-4.6.1-2-mingw32-bin.tar.lzma
	libgfortran-4.6.1-2-mingw32-dll-3.tar.lzma

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

K. Frank | 5 Feb 16:21
Picon

Re: OT: language-maven inquiry (was: Compile-Link problem with gfortran (Win 7))

Hello Kein-Hong!

On Sat, Feb 4, 2012 at 11:18 PM, KHMan <keinhong@...> wrote:
> ...
> A pet parrot would rub all its fur off.

I like that pet-parrot imagery, but I've never heard that phrase before.  I'm a
native English speaker.  Is this a well-know idiom or proverb in a non-English
language / culture?

> ...
> Cheers,
> Kein-Hong Man (esq.)
> Kuala Lumpur, Malaysia

Whenever I see your name, I think of the German word "kein," so (unfortunately?)
I think of you as "Not-Hong!"  (Sorry...)

Cheerio!

K. Frank

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Jared Maddox | 5 Feb 05:47
Picon

Re: Internet etiquette Was: Compile-Link problem with gfortran (Win 7)

> Date: Sat, 04 Feb 2012 09:15:58 -0800
> From: Wayne Watson <sierra_mtnview@...>
> Subject: Re: [Mingw-users] Compile-Link problem with gfortran (Win 7)
> To: MinGW Users List <mingw-users@...>,
> 	earnie@...
> Message-ID: <4F2D67CE.4020403@...>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>

>I'm not trying
> to be pejorative, but in the post polite of terms this idea of top vs
> bottom seems to have  psychological underpinnings.
>

I realize that you've gotten the help you were needing, but I feel the
need to rebut this. In years of reading both mailing lists and forums,
experience has taught me that removing all quoted info unimportant to
your reply, and putting individual portions of your reply DIRECTLY
UNDER the relevant portions of said quoted information provides an
ENORMOUS improvement in readability. This is, after all, the way in
which English is naturally written.

I also subscribe to the SDL mailing lists, and there are some posts
that I just IGNORE because they're an unedited mess; this is not a
matter of POLITENESS, because no amount of politeness will make up for
it. This is a matter of READABILITY.

If you want people to read it, then trim off the unimportant bits, and
insert your reply directly under the relevant part of the quote. It
works everywhere that reading from top to bottom is natural.

As for "post-polite", it translates quite well to "it's perfectly
acceptable to completely ignore me". Remember, life is a two-way
street. If you want to deal with a specific person, then it has to
meet THEIR approval, and dealing with groups (especially 'anonymous'
groups who aren't in physical proximity to you) is just a large number
of instances of dealing with individuals. "Politeness" in the form
commonly thought of is nothing more than a reasonable set of social
rules dialed up beyond what's commonly necessary.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Picon
Favicon
Gravatar

rpath or @loader_path in MinGW/Win32


I'm looking for something like GNU/Linux's rpath or Mac OS X's @loader_path in MinGW/Win32.

I'm working on the mingw build system for plugins for the app I work on, Pure Data aka Pd.  These plugins are
DLLs that are opened using dlopen()/LoadLibrary().  I'd like these plugin DLLs to be able to link to
another DLL for code shared between plugins.  Any idea how to do this?

Rather, I have it working in that if I launch the app in the folder where the plugin is, then it can find all the
DLLs.  But if I launch my app in a different folder, then it can only find the plugin DLL, but the plugin fails
to find the shared DLL.

I've solved this on GNU/Linux using rpath and Mac OS X using @loader_path.

.hc

----------------------------------------------------------------------------

"Making boring techno music is really easy with modern tools, but with live coding, boring techno is much
harder." - Chris McCormick

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Werner LEMBERG | 3 Feb 08:52
Picon

quotes with autoconf


Folks,

this time I have a question which is related to autoconf run within
MSYS.  In case this isn't appropriate here please tell me.

I have a quoting problem.  Within the `config.log' file I see, say,
INCPATH defined as

  INCPATH='-I'\''foo/bar'\'''

This expands nicely within the created Makefile to

  INCPATH=-I'foo/bar'

and works as expected if I call `make'.  [Note that this comes from
the autotroll.m4 macro package which parses the output of Qt's qmake
makefile generator.]

However, what must I do make INCPATH work within `configure'?  Using
INCPATH directly doesn't work; the compiler can't find files in
`foo/bar'.  I suspect that the quote characters are taken literally so
that they become part of the directory name itself.

If my theory is right, I need to expand one quotation level.  I've
tried `eval', `AS_ECHO', and some other things, but somehow I
failed...

Please help.

    Werner

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Werner LEMBERG | 2 Feb 19:23
Picon

Precendence of COM and EXE


Folks,

with cmd.exe, if both `foo.com' and `foo.exe' are in the same
directory, `foo.com' takes precedence and gets executed.

However, this is not the case with the MSYS shell.  Why?

    Werner

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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

Wayne Watson | 2 Feb 04:34
Picon
Favicon

Compile-Link problem with gfortran (Win 7)

It appears as though every thing above this point had no errors. However, this portion should produce Meteor.exe. Instead it produced errors at the end. Anyone know what this means?  Some permissions were denied.

...

gfortran -g -c -I ../Modules -I ../Math77 Meteor.f90

gfortran -static -o Meteor Elements_Book.o Elements_Chodas.o Generate_Plots.o Meteor.o Meteor_Orbit_m.o Plot_Support.o Poles_Composite.o Poles_Homogen

eous.o Poles_Original.o Read_Input_m.o Reports.o Velocity_Original.o Velocity_DNLSGU.o -L../Modules -lMeteor -L../Math77 -lMath77

c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: reopening Meteor.exe: Permission denied

 

c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: final link failed: Permission denied

collect2: ld returned 1 exit status

make[1]: *** [Meteor] Error 1

make[1]: Leaving directory `/c/Users/Wayne/WrayFTPdownloads/Van-downloads/Meteor_2012-01-13/Meteor_2012-01-13/Rev-1'

make: *** [Meteor] Error 2

 

Wayne <at> solarblast1 /c/Users/Wayne/WrayFTPdownloads/Van-downloads/Meteor_2012-01-13/Meteor_2012-01-13/Rev-1

$ ls Meteor.exe

ls: Meteor.exe: No such file or directory

 

Wayne <at> solarblast1 /c/Users/Wayne/WrayFTPdownloads/Van-downloads/Meteor_2012-01-13/Meteor_2012-01-13/Rev-1

$

 


-- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet In 2904 there will be 5 solar eclipses. On July 16, 2185 the longest solar eclipse inf 5k years will occur, 7 min. Web Page: <www.speckledwithstars.net/>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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