protobuf
protobuf copied to clipboard
Including Another File
I am currently editing the example file list_people.cc. I want to include another file which is located in the parent folder. I am using:
#include "../file.h"
However, I am not able to call the functions in this file. I am getting:
undefined reference to 'function_call'
What should I be doing to be able to call these functions?
In your command line, you should link to the implementation of function_call. Besides, this is a general c dev question. You may get more help from stackoverflow.