I am currently working on a project, where I have to implement a snake game which compiles just fine on itself with g++
, the problem is when I try to integrate it into the greater project which compiles using CMake
it throws a segmentation fault, even though I narrowed the whole main file down to being
#include <ncurses.h>
int main(){
initscr();
return 0;
}
I have no clue why this is happening and haven't been able to find a solution through other fora. I'm currently running Ubuntu 16.04 and cmake version 3.5.1 as well as ncurses5 v6.