Hi. As I reported here I cannot use the new version of frogatto under winxp sp2.
So why I decided to try to compile it (so I could have 1.0.3 instead of 1.0)
Prefaces:
- I am trying to compile with MINGW not with cygwin
- I am using scons not the “prebuilt” makefiles
I setted up my enviroment for building (i found also a way to avoid the problem that under mingw you cannot use sdl-config script… I created a batch script to be used instead of sdl-config and changed the related Sconscript line)
During my building I have encountered this problem
src\formula_profiler.cpp:68: error: 'SIGPROF' was not declared in this scopesrc\formula_profiler.cpp:70: error: aggregate ‘formula_profiler::itimerval timer’ has incomplete type and cannot be defined
src\formula_profiler.cpp:74: error: ‘ITIMER_PROF’ was not declared in this scope
src\formula_profiler.cpp:74: error: ‘setitimer’ was not declared in this scope
…
I will not post the duplicate errors (like line 81 that is the same error of line 70).
This error definitions seems related to some problems related perhaps to wrong headers… Any idea about this error and how to solve it?
here the params passed to g++ from scons to compile formula_profiler.cpp (if you need it):
g++ -o build\formula_profiler.o -c -D_GNU_SOURCE=1 -Dmain=SDL_main -ID:\programmi\mingw\include\SDL src\formula_profiler.cpp
( “d:\programmi\mingw” is the root of mingw. The SDL headers are placed on “SDL” sub-directory of “include” directory of MINGW. To try to be accurate I passed to the parameter “-I” the complete path where to find SDL headers. I assume it is correct also becouse there are other modules compiled successfully before encountering this problem)
Thank for your time