Issue #22 resolved

Build error in variable.cpp:765

dgs3
created an issue

Heres the scons output:

dgs3@dgs3-VirtualBox:~/Documents/technical-machine$ scons --compiler=gcc --compiler-command=/home/dgs3/opt/bin/gcc scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... Compiling build/gcc/optimized/variable.o source/variable.cpp: In function 'technicalmachine::Probabilities technicalmachine::{anonymous}::acupressure_probability(const technicalmachine::ActivePokemon&)': source/variable.cpp:765:47: error: conversion to 'unsigned int' from 'int' may change the sign of the result [-Werror=sign-conversion] cc1plus: all warnings being treated as errors scons: *** [build/gcc/optimized/variable.o] Error 1 scons: building terminated because of errors.

I'm running Ubuntu 12.04.

Comments (2)

  1. David Stone repo owner

    You'll actually need 7d1582d to get the full resolution. I switched over to a 32-bit system (where difference_type is a typedef to int) and found another sign-conversion error that is fixed in that commit. After that, you should be able to build with no problems.

  2. Log in to comment