I've problem when try to use function from msdn [ 1 ] as _ftelli64 and
_fseeki64 all times result are ( with msys )
"undefined reference to"
What flag I need to link [ 2 ] that basic function from msdn ?
These are info about my environment
$ uname -a
MINGW32_NT-5.1 YOSHI 1.0.11(0.46/3/2) 2009-07-11 17:46 i686 Msys
$ gcc -v
Reading specs from C:/Mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc
--with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32
--prefix=/mingw --enable-threads --disable-nls
--disable-shared --enable-sjlj-exceptions --enable-libgcj
--disable-java-awt --without-x --enable-java-gc=boehm
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
[ 1 ] http://msdn.microsoft.com/en-us/library/75yw9bf3%28VS.80%29.aspx
[ 2 ] http://www.mingw.org/wiki/Building_a_program_giving_me_error_messages
> "undefined reference to"
> What flag I need to link [ 2 ] that basic function from msdn ?
$ gcc test.c -o test -lmsvcr80
Now I've same problem of that post [ 1 ].
"The application has failed to start because msvcr80.dll was not found.
Re-installing the application may fix this problem."
I've downloaded attachment "Microsoft.VC80.CRT.manifest" from last
post, and renamed file to test.exe.manifest, Now file test.exe work
fine but need manifest file in the same directory, with mt tool I've
solved that problem [ 3 ]
mt -manifest C:\msys\1.0\home\salsan\test.exe.manifest
[ 1 ] http://permalink.gmane.org/gmane.comp.gnu.mingw.user/32024
[ 3 ] http://msdn.microsoft.com/en-us/library/aa375649%28VS.85%29.aspx