Jim Michaels | 1 Feb 08:52
Picon
Favicon
Gravatar

Re: pain to use _fseeki64(), giving link errors

 just out of curiosity, how do I extract the dll version information without using windows explorer?


From: Earnie Boyd <earnie-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
To: MinGW Users List <mingw-users-5NWGOfrQmneRv+LV9MX5urNAH6kLmebB@public.gmane.org.net>
Sent: Saturday, January 28, 2012 6:48 AM
Subject: Re: [Mingw-users] pain to use _fseeki64(), giving link errors

On Sat, Jan 28, 2012 at 9:31 AM, Gisle Vanem <gvanem-gyXR7Lt7FVk/G1V5fR+Y7Q@public.gmane.org> wrote:
> "Jim Michaels" <jmichae3-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
>
>> Sat 01/28/2012 1:33:02.56|C:\WINDOWS\system32|>\u\which msvcrt80.dll
>> msvcrt80.dll not found in (
>> C:\Program Files\PHP\
>
> A tool that checks along the %PATH and report what's not there is not
> so useful IMHO. Please try my 'envtool' program that reports where things
> are and where things shouldn't be. E.g. the output here:
>
> G:\MingW32\src\inet\dsniff-2.4b2> envtool --path msvcr9*.dll
>
> Tue Jul 29 07:05:08 2008 : f:\windows\system32\msvcr90.dll
> Tue Jul 29 07:05:08 2008 : f:\windows\system32\msvcr90d.dll
> Wed Nov 07 06:19:34 2007 : g:\MingW32\bin\CMake2.8\bin\msvcr90.dll
>
> You see, during installation of some packages, they add their '.\bin'
> first in the PATH. Thus potentially shadowing old DLLs for up-to-date
> system-dlls (and adding to the DLL-hell). That was the case with CMake
> above before I moved it's '.\bin' further up the PATH.
>

This is the prescribed method if your application is dependent on the
version of DLL.  A new version of the DLL may break your application.
So using a newer version of a DLL for an application that ships with
an older version isn't a good thing.  However, since the DLL actually
resides in the directory with the application it should be used
regardless of PATH as long as you don't delete the DLL.  The DLL-hell
is the reason for the implementation of manifest files.  You can also
create a directory foo.exe.local and store your DLL in that directory
that foo.exe depends on.

--
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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-5NWGOfrQmnfLDRD5uJR0wg@public.gmane.orgeforge.net

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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=unsubscribe


------------------------------------------------------------------------------
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
Fredrik Jansson | 1 Feb 10:24
Picon
Favicon

Re: mingw creates trojans from hello world programs?

On 01/31/2012 11:45 PM, Ralph Engels wrote:
>
> Many antivirus engines heuristics report false positives on programs
> it has no knowladge of. For an example try packing an executable with
> something like upx and watch how many av engines scream virus trojan
> or worse :). To my knowladge unless someone hacked the mingw.org site
> the possibility of the package being infected is very small and is
> most definatly a false positive. if in doubt upload the file in
> question to the AV devs and in most cases they will fix the wrong
> detection in an update.

I have seen a similar problem, f-secure reported various viruses and 
trojans in programs I compiled with a recent mingw gcc. For me, the 
problem disappeared again (with an f-secure update?) before I got around 
to posting to this mailing list.
I wrote a bit about this here (version numbers etc):
http://itsacleanmachine.blogspot.com/2012/01/antivirus-anger.html

I would also strongly suspect this is a false alert, particularly if
it is just a heuristic detector in the anti-virus software.

Best regards
Fredrik Jansson

------------------------------------------------------------------------------
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

LRN | 1 Feb 10:41
Picon
Gravatar

Re: mingw creates trojans from hello world programs?


On 01.02.2012 2:27, Amir Eldor wrote:
> Short story: I use netbeans on Windows 7 and I get a trojan alert
> from my free AVG antivirus after compiling and trying to run the
> program. The AVG false-positives forums suggested checking the file
> with online scanners prior to submitting a report. Several of them
> reported a trojan in the file.
> 
Never trust antivirus scanners. Run free software, obtained from
secure sources (preferably - with signatures), and don't use antivirus
software at all.
Sam Morris | 1 Feb 11:33

Re: pain to use _fseeki64(), giving link errors

On Sat, 28 Jan 2012 15:31:40 +0100, Gisle Vanem wrote:

> "Jim Michaels" <jmichae3@...> wrote:
> 
>> Sat 01/28/2012 1:33:02.56|C:\WINDOWS\system32|>\u\which msvcrt80.dll
>> msvcrt80.dll not found in (
>> C:\Program Files\PHP\
> 
> A tool that checks along the %PATH and report what's not there is not
> so useful IMHO. Please try my 'envtool' program that reports where 
things 
> are and where things shouldn't be. E.g. the output here:
> 
> G:\MingW32\src\inet\dsniff-2.4b2> envtool --path msvcr9*.dll
> 
> Tue Jul 29 07:05:08 2008 : f:\windows\system32\msvcr90.dll
> Tue Jul 29 07:05:08 2008 : f:\windows\system32\msvcr90d.dll

That is not right. msvc[rp][89]0d?.dll, should not be in your system32 
directory. They are only supposed to be deep within the SXS cache. If you 
know which bit of software dumped them in there then please let the 
authors know that they are not installing the redistributables correctly. 
If you put them in there yourself to get a specific program working, you 
should instead install them as 'private assemblies' in the directory of 
the EXE that requires them (details on MSDN).

NB, this information does not apply to msvcr70.dll and friends, which pre-
date the SXS mess, and msvcr10.dll, which has moved away from using SXS 
at all.

Oh, I noticed that you are not the person with the original problem. 
Still, this advice may save you some hair pulling if you ever have 
problems caused by these DLLs being in the wrong place in the future.

-- 
Sam Morris

------------------------------------------------------------------------------
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

Amir Eldor | 1 Feb 12:18
Picon

Re: mingw creates trojans from hello world programs?

Thanks for the answers, I will send a false-positive report to AVG.
I'll keep you posted.

On Wed, Feb 1, 2012 at 11:41 AM, LRN <lrn1986-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01.02.2012 2:27, Amir Eldor wrote:
> Short story: I use netbeans on Windows 7 and I get a trojan alert
> from my free AVG antivirus after compiling and trying to run the
> program. The AVG false-positives forums suggested checking the file
> with online scanners prior to submitting a report. Several of them
> reported a trojan in the file.
>
Never trust antivirus scanners. Run free software, obtained from
secure sources (preferably - with signatures), and don't use antivirus
software at all.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPKQi7AAoJEOs4Jb6SI2Cwjw0IALLT6c8ImCZPKxUC+iqJEs54
DhFq4+1/U7DIiFq5PAK4XPUZwr0HutwQ2QAW9syETScmmZ3nURaZP7MAdHAYenzc
gGKh1Xwflp8eGSvwMTu3mLiWXpuuiOPOd+SyQIVLpD/8efrEfMUAbzwmMAziq4WS
52KCliz1oBwFQjwSxiUQ/Z/NFPLCAauUycIO6aPGNehEvfK0jaivv83ZOr+wqgIY
U6T10fMRR0S+KXvHpvH9ylg9okWKR7Yzk6hiRxbPAIvy1m31NfFjZn6Fdtve1jG2
598Yn+aRgXkCCRv9WPHgsplLOW55oXSOLhWxvVHZOUTWTbAwKbkCwwYqB1TXiJ0=
=iui8
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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-5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.net

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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=unsubscribe

------------------------------------------------------------------------------
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
Earnie Boyd | 1 Feb 13:25
Picon

Re: mingw creates trojans from hello world programs?

On Wed, Feb 1, 2012 at 4:41 AM, LRN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01.02.2012 2:27, Amir Eldor wrote:
>> Short story: I use netbeans on Windows 7 and I get a trojan alert
>> from my free AVG antivirus after compiling and trying to run the
>> program. The AVG false-positives forums suggested checking the file
>> with online scanners prior to submitting a report. Several of them
>> reported a trojan in the file.
>>
> Never trust antivirus scanners. Run free software, obtained from
> secure sources (preferably - with signatures), and don't use antivirus
> software at all.

I'll add, if you do run antivirus software, you need to add the
directory or device where you are building software in the "do not
scan" exception list of the antivirus configuration because these
programs will often open a file that is created by configure and cause
the configure heartache when it tries to remove the file.  The
configure script is faster than the virus program which is getting in
the way of the configure script trying to determine what is available.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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

Earnie Boyd | 1 Feb 13:29
Picon

Re: pain to use _fseeki64(), giving link errors

On Wed, Feb 1, 2012 at 5:33 AM, Sam Morris wrote:
> NB, this information does not apply to msvcr70.dll and friends, which pre-
> date the SXS mess, and msvcr10.dll, which has moved away from using SXS
> at all.

Sam, did you mean msvcr100.dll instead of msvcr10.dll?

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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

ruler501 | 1 Feb 20:23
Picon

MinGW g++ compile errors

When running g++.exe test.cpp I get these errors

In file included from
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/bits/postypes.h:42:0,
                 from
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/iosfwd:42,
                 from
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/ios:39,
                 from
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/ostream:40,
                 from
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/iostream:40,
                 from test.cpp:1:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/cwchar:250:11: error:
'::wcstold' has not been declared
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/cwchar:266:22: error:
'__gnu_cxx::wcstold' has not been declared

test.cpp is as follows

#include <iostream>

int main() { return 1; }

------------------------------------------------------------------------------
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

Earnie Boyd | 1 Feb 14:35
Picon

Re: MinGW g++ compile errors

On Wed, Feb 1, 2012 at 2:23 PM, ruler501 <d.ruler501@...> wrote:
> When running g++.exe test.cpp I get these errors
>
--8<--
> c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/cwchar:250:11: error:
> '::wcstold' has not been declared
> c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/cwchar:266:22: error:
> '__gnu_cxx::wcstold' has not been declared
>
> test.cpp is as follows
>
> #include <iostream>
>
> int main() { return 1; }

AFAIK wide character support for MinGW G++ has yet to be implemented.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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

Earnie Boyd | 1 Feb 14:42
Picon

www.mingw.org

Users of www.mingw.org,

Today I updated to the most recent releases of all modules for the
Drupal 6.x version.  I need someone to help with conversion from
Drupal 6 to Drupal 7 including but not limited to updating modules
from D6 to D7 if the module does not have a ready made update.  If you
have time to do this, contact me privately via my SF email forwarding
address so we can discuss a plan of attack.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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