[Ohrrpgce] OPENFILE compile problem on Windows

James Paige Bob at HamsterRepublic.com
Wed May 4 10:18:42 PDT 2016


Regarding that error from earlier:

fbc -c os_windows.bas -o build\os_windows.o -mt -exx -g -O 2 -arch 686
C:\Users\James\src\ohr\wip\lumpfile.bi(228) error 4: Duplicated definition in 'd
eclare function OPENFILE(filename as string, open_bits as OPENBits, byref fh as
integer) as integer'
scons: *** [build\os_windows.o] Error 1
scons: building terminated because of errors.

I followed your suggestion to add #undef openfile to
include_windows_bi in config.bi but then I got a different failure:

c:\Users\James\src\ohr\wip>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build\filelayer.o -c -g -Wall -Wno-non-virtual-dtor -O3 -DFBCVERSION=230
-m32 -mpreferred-stack-boundary=2 -mno-sse filelayer.cpp
filelayer.cpp: In function 'int OPENFILE(FBSTRING*, OPENBits, int&)':
filelayer.cpp:154:74: error: new declaration 'int OPENFILE(FBSTRING*, OPENBits,
int&)'
filelayer.h:60:6: error: ambiguates old declaration 'int OPENFILE(FBSTRING*, OPE
NBits, int&)'
scons: *** [build\filelayer.o] Error 1
scons: building terminated because of errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20160504/05352d9b/attachment-0001.htm>


More information about the Ohrrpgce mailing list