Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
Code::Blocks multiple files C++
So I want to make a data file and connect it to my main file. I have a huge amount of data that I need to pre-place in my code and I do not want it at the tope of my code because my code will be quite long to. Is there any way to seperate my code into two files and connect them? I have already tried #include "data.c" to connect it to my "main.cpp" file and it is not working. It keeps coming up with error: ld returned 1 exit status.
1 Answer
+ 6
Well you cant include source files, only headers