VOGONS


First post, by ih8registrations

User metadata
Rank Oldbie
Rank
Oldbie
g++  -g -O2   -o dosbox.exe  dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/serialport/libserial.a dosbox_ico.o -lm  -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lopengl32 -lwinmm
C:/d/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libstdc++.a(misc-inst.o)(.text$_ZN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode+0x54):misc-inst.cc: undefined reference to `fseeko64'
collect2: ld returned 1 exit status

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

sounds like an internal error of the compiler ?
the linked library you are refering to is one of them. not of us.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by frobme

User metadata
Rank Member
Rank
Member
ih8registrations wrote:
[…]
Show full quote
g++  -g -O2   -o dosbox.exe  dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/serialport/libserial.a dosbox_ico.o -lm  -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lopengl32 -lwinmm
C:/d/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libstdc++.a(misc-inst.o)(.text$_ZN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode+0x54):misc-inst.cc: undefined reference to `fseeko64'
collect2: ld returned 1 exit status

You might want to look here which contains this reference:

* libstdc++ requires version 3.0 or higher of mingw-runtime and
w32api version 2.2 or higher. The GNU extension class
__gnu_cxx::stdio_sync_filebuf requires version 3.5 of the mingw-runtime
(with large-file support) to resolve references to fseeko64.

Looks like you want to be using candidate gcc 3.4.5 under MinGW or minGW cross compile.

-Frob