not on my XP system.  no msvcrt80.dll here.  what's on here is msvcrt.dll 7.0.2600.5512

so I guess I can't  - ahh, I know, I will use a backrev version of mingw-w64 auto 20111127, that works great.


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

Fri 01/27/2012 22:43:19.93|C:\cd|>cd \windows\system32

Sat 01/28/2012  1:32:53.10|C:\WINDOWS\system32|>dir msvcrt*
 Volume in drive C is wd 2000
 Volume Serial Number is 783C-0FA9

 Directory of C:\WINDOWS\system32

04/14/2008  04:42 AM           343,040 msvcrt.dll
07/16/2003  08:31 AM           253,952 msvcrt20.dll
04/13/2008  11:00 PM            61,440 msvcrt40.dll
               3 File(s)        658,432 bytes
               0 Dir(s)  1,176,671,272,960 bytes free

Sat 01/28/2012  1:33:02.56|C:\WINDOWS\system32|>\u\which msvcrt80.dll
msvcrt80.dll not found in (
C:\Program Files\PHP\
C:\gnuwin32\GetGnuWin32\bin
C:\gnuwin32\GetGnuWin32\gnuwin32\sbin
C:\gnuwin32\GetGnuWin32\gnuwin32\bin
C:\Perl\site\bin
C:\Perl\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\system32\WBEM
C:\Program Files\PHP
c:\u
c:\x
c:\program files\7-zip
c:\bin
C:\Program Files\Csound\bin
C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\
C:\Program Files\CMake 2.8\bin
C:\Program Files\Common Files\HP\Digital Imaging\bin
C:\Program Files\HP\Digital Imaging\bin\
C:\Program Files\HP\Digital Imaging\bin\Qt\Qt 4.3.3
C:\Program Files\WinMerge
C:\Program Files\Java\jdk1.6.0_26\bin
C:\Program Files\Common Files\Ulead Systems\MPEG
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\Common Files\Intuit\QBPOSSDKRuntime
C:\Program Files\QuickTime\QTSystem\
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\VDT
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\VDT\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\ProjectComponents
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\1033
C:\Program Files\OpenAxiom\bin
C:\Program Files\Notepad++\
c:\tsepro
)

Sat 01/28/2012  1:33:53.21|C:\WINDOWS\system32|>\u\which msvcrt90.dll
msvcrt90.dll not found in (
C:\Program Files\PHP\
C:\gnuwin32\GetGnuWin32\bin
C:\gnuwin32\GetGnuWin32\gnuwin32\sbin
C:\gnuwin32\GetGnuWin32\gnuwin32\bin
C:\Perl\site\bin
C:\Perl\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\system32\WBEM
C:\Program Files\PHP
c:\u
c:\x
c:\program files\7-zip
c:\bin
C:\Program Files\Csound\bin
C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\
C:\Program Files\CMake 2.8\bin
C:\Program Files\Common Files\HP\Digital Imaging\bin
C:\Program Files\HP\Digital Imaging\bin\
C:\Program Files\HP\Digital Imaging\bin\Qt\Qt 4.3.3
C:\Program Files\WinMerge
C:\Program Files\Java\jdk1.6.0_26\bin
C:\Program Files\Common Files\Ulead Systems\MPEG
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\Common Files\Intuit\QBPOSSDKRuntime
C:\Program Files\QuickTime\QTSystem\
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\VDT
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\VDT\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\ProjectComponents
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\1033
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\1033
C:\Program Files\OpenAxiom\bin
C:\Program Files\Notepad++\
c:\tsepro
)

Sat 01/28/2012  1:34:00.09|C:\WINDOWS\system32|>




From: Eli Zaretskii <eliz@gnu.org>
To: Jim Michaels <jmichae3@yahoo.com>; MinGW Users List <mingw-users@lists.sourceforge.net>
Sent: Saturday, January 28, 2012 1:12 AM
Subject: Re: [Mingw-users] pain to use _fseeki64(), giving link errors

> Date: Sat, 28 Jan 2012 00:06:55 -0800 (PST)
> From: Jim Michaels <jmichae3@yahoo.com>
>
> I had to do this in mingw whereas I did not have to do this in mingw-w64.
> #if defined(__MINGW32__)
> #define __MSVCRT_VERSION__ 0x800
> #define _WIN32_WINNT 0x0500
> #endif
> ...
>     if (_fseeki64(fsrc, pos, SEEK_SET)) {
>         printf("ERROR: could not set file pointer.(1)\n");
>         fclose(fsrc);
>         free(diskBuffer);
>         return 1;
>     }
>
>
>
>
> but now I get this link error
>
> extrchnk.o:extrchnk.cpp:(.text+0xeb8): undefined reference to `_fseeki64'
> collect2: ld returned 1 exit status

Since this function exists in version 8.0 or later of MSVCRT, you
probably need to link with -lmsvcr80 in the link command line.

Note that this probably means the program will not work on machines
that don't have msvcr80.dll installed.