Menu

#1 Windows compilation using codeblocks and g++ compiler

open
nobody
None
5
2010-01-22
2010-01-22
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.