Hey, long time no see I guess.
I was just trying to compile nesmock in Windows but I'm failing hard.
That's because I'm not sure where in Makefile.sets I'm supposed to add -mno-cygwin. (I am not experienced at this at all)
I tried adding it on the CXXFLAGS line but I get the error that -mno-cygwin is not supposed to be there. I tried adding it below on a new line, but that gives me a "missing separator" error.
So, where in the file am I supposed to add -mno-cygwin?
I can only guess that it's in this section:
# Flags.
CFLAGS=$(OPTIM) $(CCOPTS)
CXXFLAGS=$(OPTIM) $(CXXOPTS)
#-fno-rtti
But as nothing I've tried works, I'm at a loss.
Please help!
EDIT:
I realised that you might wanna see the failed output too:
C:\...\nesmock>make
g++ -O2 -Wall -Wundef -Wcast-qual -Wpointer-arith -Wconversion -Wwrite-strings -Wsign-compare -Wredundant-decls -Winit-self -Wextra -Wcast-align -Wformat -Wno-unused -Wno-conversion -Woverloaded-virtual -std=c++0x -DVERSION=\"1.7.2\" -g -pipe -DUSE_PTHREADS=0 -DHASH_MAP=1 -c -o main.o main.cc
main.cc:452:21: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
"nesmock v"VERSION" - Copyright (C) 1992,2012 Bisqwit (http://iki.fi/bisqwit/)\n"
^
In file included from main.cc:252:0:
famtasia.hh:63:14: warning: unused parameter 'data' [-Wunused-parameter]
void Load(const std::vector<unsigned char>& data)
^
famtasia.hh:67:14: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
In file included from main.cc:254:0:
virtuanes.hh:125:14: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
virtuanes.hh:248:10: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from nintendulator.hh:1,
from main.cc:255:
c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
{ return (float)(_hypot (x, y)); }
^
In file included from main.cc:255:0:
nintendulator.hh: At global scope:
nintendulator.hh:50:14: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
In file included from main.cc:256:0:
nesticle.hh:9:14: warning: unused parameter 'data' [-Wunused-parameter]
void Load(const std::vector<unsigned char>& data)
^
nesticle.hh:13:14: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
nesticle.hh:19:10: warning: unused parameter 'data' [-Wunused-parameter]
bool Load(const std::vector<unsigned char>& data)
^
nesticle.hh:24:10: warning: unused parameter 'data' [-Wunused-parameter]
void Write(std::vector<unsigned char>& data)
^
In file included from main.cc:257:0:
fceux.hh: In function 'std::wstring FCEUX::BytesToString(const unsigned char*, const unsigned char*)':
fceux.hh:29:32: error: 'swprintf' is not a member of 'std'
{ wchar_t Buf[64]; std::swprintf(Buf,sizeof(Buf), L"%d", *begin); return Buf; }
^
fceux.hh:31:32: error: 'swprintf' is not a member of 'std'
{ wchar_t Buf[64]; std::swprintf(Buf,sizeof(Buf), L"%d", R16(begin)); return Buf; }
^
fceux.hh:33:32: error: 'swprintf' is not a member of 'std'
{ wchar_t Buf[64]; std::swprintf(Buf,sizeof(Buf), L"%d", R32(begin)); return Buf; }
^
fceux.hh:47:13: warning: narrowing conversion of '((n > 1u) ? ((int)FCEUX::Base64Table.FCEUX::Base64Table::operator[](((size_t)(((((int)input[1]) & 15) << 2) | (((int)input[2]) >> 6))))) : 61)' from 'int' to 'wchar_t' inside { } [-Wnarrowing]
};
^
fceux.hh:47:13: warning: narrowing conversion of '((n > 2u) ? ((int)FCEUX::Base64Table.FCEUX::Base64Table::operator[]((((size_t)input[2]) & 63u))) : 61)' from 'int' to 'wchar_t' inside { } [-Wnarrowing]
<builtin>: recipe for target 'main.o' failed
make: *** [main.o] Error 1
C:\...\nesmock>