

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). Now whenever you start a new project, when you get to the wizard screen that says something like "Please select the compiler to use.", select "GNU GCC Compiler" (again it should be the first option).I am basically working the first time with header files. select the "Resource compiler" subtab, hit the add button and enter MINGWROOT\include.select the "Linker" subtab, hit the add button and enter MINGWROOT\lib.Hit the add button and enter MINGWROOT\include select the "Search directories" tab, and then select the "Compiler" subtab.(It's the folder that contains the bin, include, and lib subfolders). hit the "." button and manually choose the root folder of the mingw version you want to use.That may or may not work if you have multiple versions of mingw/tdm-gcc on your computer. Select "GNU GCC Compiler" (it should be the very first option).In the global compiler settings dialog that you're showing above: If the codeblocks installer failed to setup mingw for you, here's how you can manually add it.
