[Solved?]Error when trying to compile anything for PokittoSim (in Linux)


#1

I’m using Code::Blocks 17.12 on Fedora with the latest release from github of pokitto sim. Whenever I attempt to compile any examples in code::blocks for PokittoSim, I always get a compilation error for POKITTO_CORE/PokittoConsole.cpp on line 82 saying

/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoConsole.cpp|83|error: cast from ‘char*’ to ‘uint32_t’ {aka ‘unsigned int’} loses precision [-fpermissive]|

I am unsure of if anything I am doing is incorrect, as this is my first time using Code::Blocks.


#2

Are you using PokittoSim from here?

Or PokittoSim from here?


The first one is deprecated and doesn’t work anymore.
The second one is the one that should be used,
but I think that might be a bit out of date as well.


#3

I was using the one from PokittoLib


#4

It’s too late for me to fix it but I can see what the bug is.


For anyone interested, time for a programming lesson:
If you need to cast a pointer to an integer type, use std::uintptr, that’s what it’s designed for.

The bug here is that sizeof(char *) is 8 on 64-bit systems and sizeof(uint32_t) is 4,
so converting from a pointer to a uint32_t results in truncation,
which makes the value unusable.

The easiest solution is to change the definition of consmsg to:

struct consmsg {
  uintptr_t val;
  uint8_t valtype;
  uint8_t msgsource;
  uint8_t msgtype;
};

But Really I think it would be better to make consmsg only use char * and have the creation functions use std::sprintf to create a string to store in the consmsg.
consmsg would also need a destructor to dispose of the string.


#5

@Turtle, just leave the PokittoConsole.cpp out from the project.

… and at least for me the project was compiling not long ago.

Did you use the .cbp project included or did you make your own project


#6

I used the included .cbp project


#7

ok. I’ll take a fresh clone and see if I can replicate the problem.


#8

@Turtle

Fresh clone from https://github.com/pokitto/PokittoLib , opened Pokitto_sim.cbp in Pokitto/POKITTO_SIM directory

Windows 10, Code:Blocks 17.12, HelloWorld target - builds with no errors (warnings yes)

I wonder what is the matter with what you are trying to do? Can you be more specific?

EDIT: I see you’re on Fedora. I’ll check if the linux build is OK.


#9

This could be the issue.
I’ve known EmBitz to refuse to build because something that’s normally a warning is an error.
I’ve also known some systems to reduce errors to warnings.
(Personally I follow the philosophy that (almost) all warnings should be treated as errors and erradicated.)

Either way, whether this compiles or not, that bug is still a bug for the reasons I mentioned earlier:

uintptr is the easiest solution. I could have a PR ready for that tomorrow,
although like I say, I’m not sure it’s the best solution.

If consmsg is just a sort of ‘toast message’ system then it could manage a dynamically allocated const char * since the numerical value wouldn’t actually need to be read.


#10

@Turtle I pushed a new update, download / git clone again and try again, thanks


#11

After cloning the repo again, the issue mentioned earlier is gone, however there is another error when compiling.

||=== Build: HelloWorld in Pokitto_sim (compiler: GNU GCC Compiler) ===|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘int Pokitto::Cookie::exists(const char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|157|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|160|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘int Pokitto::Cookie::getFreeKeytableSlot()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|173|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::isFreeBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|198|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCore.cpp|1183|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::isMyBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|209|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::blockIsOwnedBy(int, int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|222|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::writeKeyToKeytable(const char*, int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|231|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|232|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::readKeytableEntry(int, char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|242|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘char Pokitto::Cookie::getBlockTableEntry(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|250|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::readBlock(int, char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|259|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::formatKeytable()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|268|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::freeBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|278|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|283|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::reserveBlock()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|294|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::eraseKeytableEntry(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|306|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::cleanKeytable()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|314|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|322|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|327|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|329|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘char Pokitto::Cookie::readQueue()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|339|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::writeQueue(char)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|351|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoDisplay.cpp|516|warning: narrowing conversion of ‘Pokitto::Display::bgcolor’ from ‘uint16_t’ {aka ‘short unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} inside { } [-Wnarrowing]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoDisplay.cpp|516|warning: narrowing conversion of ‘Pokitto::Display::color’ from ‘uint16_t’ {aka ‘short unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} inside { } [-Wnarrowing]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoPrintf.cpp||In function ‘int _ext_print(char**, int*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoPrintf.cpp|126|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_LIBS/Synth/Synth_wavefuncs.cpp||In function ‘void sample(OSC*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_LIBS/Synth/Synth_wavefuncs.cpp|100|warning: the address of ‘void sample(OSC*)’ will never be NULL [-Waddress]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/usr/include/c++/8/bits/stl_algobase.h|243|error: macro "min" passed 3 arguments, but takes just 2|
/usr/include/c++/8/bits/stl_algobase.h|265|error: macro "max" passed 3 arguments, but takes just 2|
/usr/include/c++/8/bits/stl_algobase.h|243|error: macro "min" passed 3 arguments, but takes just 2|
/usr/include/c++/8/bits/stl_algobase.h|265|error: macro "max" passed 3 arguments, but takes just 2|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected unqualified-id before ‘const’|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|87|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|87|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected unqualified-id before ‘const’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|86|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|86|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|246|error: expected primary-expression before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|246|error: expected ‘}’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|244|note: to match this ‘{’|
/usr/include/c++/8/bits/stl_algobase.h|244|error: expected ‘;’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|248|error: expected unqualified-id before ‘return’|
/usr/include/c++/8/bits/stl_algobase.h|268|error: expected primary-expression before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|268|error: expected ‘}’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|266|note: to match this ‘{’|
/usr/include/c++/8/bits/stl_algobase.h|266|error: expected ‘;’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|270|error: expected unqualified-id before ‘return’|
/usr/include/c++/8/bits/stl_algobase.h|271|error: expected declaration before ‘}’ token|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp||In function ‘void Pokitto::lcdRefreshMode1(uint8_t*, uint8_t, uint8_t, uint8_t, uint8_t, uint16_t*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|338|warning: unused variable ‘yoffset’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp||In function ‘void Pokitto::lcdRefreshT1(uint8_t*, uint8_t*, uint8_t*, uint16_t*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1153|warning: variable ‘xptr’ set but not used [-Wunused-but-set-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1154|warning: unused variable ‘scanline’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: variable ‘yoffset’ set but not used [-Wunused-but-set-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tilebyte’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tileindex’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tilex’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tiley’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘xcount’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected unqualified-id before ‘const’|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|87|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|195|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|87|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected unqualified-id before ‘const’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|86|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|219|error: expected ‘)’ before ‘const’|
../POKITTO_CORE/PokittoFakeavr.h|86|note: to match this ‘(’|
/usr/include/c++/8/bits/stl_algobase.h|246|error: expected primary-expression before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|246|error: expected ‘}’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|244|note: to match this ‘{’|
/usr/include/c++/8/bits/stl_algobase.h|244|error: expected ‘;’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|248|error: expected unqualified-id before ‘return’|
/usr/include/c++/8/bits/stl_algobase.h|268|error: expected primary-expression before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|268|error: expected ‘}’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|266|note: to match this ‘{’|
/usr/include/c++/8/bits/stl_algobase.h|266|error: expected ‘;’ before ‘if’|
/usr/include/c++/8/bits/stl_algobase.h|270|error: expected unqualified-id before ‘return’|
/usr/include/c++/8/bits/stl_algobase.h|271|error: expected declaration before ‘}’ token|
||=== Build failed: 34 error(s), 84 warning(s) (0 minute(s), 4 second(s)) ===|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
||=== Build finished: 34 error(s), 86 warning(s) (0 minute(s), 4 second(s)) ===|


#12

Something else is going on here.

What version of GCC do you have?

gcc -v

Edit: just pushed a new one, try again please (just the HelloWord example)


#13

(gcc ver gcc version 8.2.1 20181215 (Red Hat 8.2.1-6) (GCC))

This time I get 8 errors

||=== Build: HelloWorld in Pokitto_sim (compiler: GNU GCC Compiler) ===|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘int Pokitto::Cookie::exists(const char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|157|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|160|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘int Pokitto::Cookie::getFreeKeytableSlot()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|173|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::isFreeBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|198|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::isMyBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|209|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::blockIsOwnedBy(int, int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|222|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::writeKeyToKeytable(const char*, int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|231|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|232|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::readKeytableEntry(int, char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|242|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘char Pokitto::Cookie::getBlockTableEntry(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|250|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::readBlock(int, char*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|259|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::formatKeytable()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|268|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::freeBlock(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|278|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|283|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘bool Pokitto::Cookie::reserveBlock()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|294|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::eraseKeytableEntry(int)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|306|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::cleanKeytable()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|314|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|322|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|327|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|329|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘char Pokitto::Cookie::readQueue()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|339|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp||In member function ‘void Pokitto::Cookie::writeQueue(char)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCookie.cpp|351|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoCore.cpp|1183|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoPrintf.cpp||In function ‘int _ext_print(char**, int*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoPrintf.cpp|126|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoDisplay.cpp|516|warning: narrowing conversion of ‘Pokitto::Display::bgcolor’ from ‘uint16_t’ {aka ‘short unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} inside { } [-Wnarrowing]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_CORE/PokittoDisplay.cpp|516|warning: narrowing conversion of ‘Pokitto::Display::color’ from ‘uint16_t’ {aka ‘short unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} inside { } [-Wnarrowing]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_LIBS/Synth/Synth_wavefuncs.cpp||In function ‘void sample(OSC*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_LIBS/Synth/Synth_wavefuncs.cpp|100|warning: the address of ‘void sample(OSC*)’ will never be NULL [-Waddress]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
../POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
../POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
../POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp||In function ‘void Pokitto::lcdRefreshMode1(uint8_t*, uint8_t, uint8_t, uint8_t, uint8_t, uint16_t*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|338|warning: unused variable ‘yoffset’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp||In function ‘void Pokitto::lcdRefreshT1(uint8_t*, uint8_t*, uint8_t*, uint16_t*)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1153|warning: variable ‘xptr’ set but not used [-Wunused-but-set-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1154|warning: unused variable ‘scanline’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: variable ‘yoffset’ set but not used [-Wunused-but-set-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tilebyte’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tileindex’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tilex’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘tiley’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimLCD.cpp|1155|warning: unused variable ‘xcount’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/PokittoSimulator.cpp||In member function ‘void Pokitto::Simulator::initSDLGfx()’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/PokittoSimulator.cpp|272|warning: unused variable ‘rfrsh’ [-Wunused-variable]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘uint8_t EERef::operator*() const’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|45|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h||In member function ‘EERef& EERef::operator=(uint8_t)’:|
/home/turtle/Downloads/PokittoLib-master/Pokitto/POKITTO_SIM/SimEEPROM.h|50|warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]|
ld||cannot find -lmingw32|
ld||cannot find -lSDLmain|
ld||cannot find -lSDL.dll|
ld||cannot find -luser32|
ld||cannot find -lgdi32|
ld||cannot find -lwinmm|
ld||cannot find -ldxguid|
||error: ld returned 1 exit status|
||=== Build failed: 8 error(s), 87 warning(s) (0 minute(s), 3 second(s)) ===|


#14

We’re making progress, its only the linker giving errors now.

Tomorrow when I hve a bit of time I’ll fix the rest for you


#15

@jonne Thanks so much for taking time out of your day to help me with this.


#16

no problem!


#17

Uh oh. Half past 8 pm and still not able to start on this. I’ll try to get this fixed soon, I know exactly what needs to be done


#18

Solved?

@Turtle , I added a Code::Blocks project called “pokitto_sim_linux.cbp” in the Pokitto/POKITTO_SIM folder in the PokittoLib repository

At least I am able to compile targets directly to linux (ubuntu 16.14 LTS) using that project with no issues at all

NOTE: you may need to define

#define PROJ_ENABLE_SOUND 0

… to disable sound if you experience crashing


#19

It seemed like it was going to compile this time. But there isn’t an /usr/lib/x86_64-linux-gnu folder on my system, which caused the compilation to fail, as the .so files are in different places. Where can I redefine where it looks for these files in code::blocks?


#20

Right click on project name in project tree, “properties”, then “build options”, then Linker settings, and you should see this: