some compilations errors fixed

This commit is contained in:
HatjigeorgiouDimitri 2016-06-03 11:04:27 +02:00
parent fc113617c9
commit 10a627ddb3
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ pixel[1] = header_data_cmap[(unsigned char)data[0]][1]; \
pixel[2] = header_data_cmap[(unsigned char)data[0]][2]; \
data ++; }
static char header_data_cmap[256][3] = {
static unsigned char header_data_cmap[256][3] = {
{ 0, 0, 0},
{255,255,255},
{255,255,255},

View File

@ -3,10 +3,10 @@
#include "image.h"
// windows MinGW
// g++ -shared realWorld.cpp -o realWorld.dll -I../include
// g++ -shared realWorld.cpp -o realWorld.dll -I../src -funsigned-char -std=c++11
// linux gcc
// g++ -shared realWorld.cpp -o realWorld.so -I../include -fPIC
// g++ -shared realWorld.cpp -o realWorld.so -I../src -fPIC -funsigned-char -std=c++11
extern "C" void generate(Map *mapPtr)
{