protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Including Another File

Open Phlip79 opened this issue 9 years ago • 1 comments

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?

Phlip79 avatar Jun 02 '17 15:06 Phlip79

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.

TeBoring avatar Dec 11 '17 20:12 TeBoring