Yes, I know there's already several questions that go into detail about this, but I feel like my question isn't that detail-specific. Just something staring at me in the face, but I can't quite see it.
I'm compiling C and C++ files together in a Makefile. Everything seems to be running fine until I get the titular error, which pertains to the functions in CFile2.
Compilation works like this (w/ placeholder names):
g++ -c main.cpp
g++ -c Class.cpp
gcc -c CFile1.c
gcc -c CFile2.c
g++ main.o Class.o CFile1.o CFile2.o -lcurl
My Class.cpp has a Class.hpp, and my CFile1 and CFile2 both have .h files respectively. Everything is located within the same directory, and they all have the same header guard structure.
#ifndef
#define
//Insert function prototypes here
#endif
I'm also only including the CFile1.h and CFile2.h in Class.hpp. Is there something I'm missing based on this info only?