Hi, I'm new to c++ and I keep getting a build error with raylib

This problem I’ve never had before when dabbling in cpp.
I can’t find the files in c: the compiler refers to. Not in hidden either and as you can see they are in temp which is strange, why would temp hold main files that are being read.

I’m not too sure what’s going on here but without raylib I’ve never had a problem so I assume it’s something in the makefile that messes things up for me. I don’t know though, just a guess.

Any help would be appreciated!

Make sure you only have 1 CPP file in that directory that has a “main” function in it. The *.o files are intermediate object files created by the compiler in a temporary location. The important message here is “multiple definition of `main’”.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms