Search code examples
c++c++builderinclude-path

Include functions written in different folders


How can I use a function written within a .cpp saved in a folder different from the one that needs that function? For all the .cpp of the first folder I've simply added an #include to the .h of the cpp (and it works fine), but trying to add an #include "..\Folder1\....h" to all the .cpp of the second folder is not enough and the Borland C++ Builder gives me the Unresolved external error.
What can I do?
Thanks


Solution

  • Add the location of the object files to your linker search path.

    Project Options Dialog