Windows compilation using codeblocks and g++ compiler
Brought to you by:
pinniped
Changes I made
----------------
smarterr.cpp
----------------
#ifdef __WIN32
#include "w32smarterr.h"
#else
#include "NIXsmarterr.h"
#endif
--------------
gramsspc.h
--------------
#ifndef __WIN32
#include "wintypes.h" //Typical type declarations a-la "windows.h"
#else
#include <windows.h>
#endif
--------------
gramsspc.cpp
--------------
try
{
spcfile.open(filename.c_str(), flflags);
\} catch \(std::exception &x\)
{
fprintf(stderr,"Error opening file \n");
exit(1);
}
-----------
Compiler #defines (-D options)
-----------
__WIN32
WIN32
__MSVCRT_VERSION__=0x0601
_WIN32_IE=0x0400
_WIN32_WINNT=0x0500
-----------
Compiler lib (-l options)
-----------
psapi