
Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo.

or else compiling all project parts wont work.I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. When adding new files to your project in codeblocks, it seems necessary to check "debug" and "release" boxes during the adding process. The Compiler it uses is GNU GCC COMPILER.ĮDIT 2: thanks everyone for trying to help out. I never touched codeblocks compiler settings and I am not experienced with them. But I have no idea how to change the compiler settings to make it add these. Since fillrand is defined in house.cpp and declared in house.h, I understand that these two were never added to the compiling. I never changed any codeblocks settings, since i dont know much about these settings (yet).ĮDIT: the error code i basically get, is main.cpp|14|undefined reference to \fillrand(std::vector >&, unsigned int, unsigned int, unsigned int)'| but when dividing it into house.cpp and house.h it doesnt work (wont be properly compiled with house.h and house.cpp).

I put all the code into the main.cpp to see if i made a mistake in the code itself, but there is no mistake, the code works. in house.cpp I defined the functions, and in house.h i declared them. Inside the same folder, alongside main.cpp, there is a house.cpp and a house.h file saved. and there is a main.cpp inside that folder. Let me tell you what I did: I have a folder, its name is "hello".

Can anyone tell me for dummys what I need to set up? I read in many boards that I need to set up some settings in the compiler settings first, but I kinda cant get it to work. i did everything right so far but when i compile, i get the error "undefinied reference" in my main.cpp (it is about a function that cant be found). I am basically working the first time with header files.
