I am using VS2005 development environment.
I have an existing source code which takes a lot of header files as well as source and library files
All the include and source files lies within the sub folder of this folderCode:D:\..\SRC\C++\MyProject\srclib
Include file directories
Similarly there are library files as well as source files that reside within this scrlib too.Code:D:\..\SRC\C++\MyProject\srclib\apr\include D:\..\SRC\C++\MyProject\srclib\apr-iconv\include D:\..\SRC\C++\MyProject\srclib\apr-util\include
Now the problem is specifying the path of these folders so that the compiler is able to find the header files therefore the function signature
Now one way is to include these directories in "Tools>Options>Project & Solution>VC++ Directories".
Or we go to "project settings and in General>C/C++>additional Include Directories", specify the settings.
I choosed the 2nd option for include directory.
But the problem that I am facing can be demonstrated with this example.Code:./include ./srclib/apr/include ./srclib/apr-util/include ./srclib/apr/memory/unix
"apr_pools.h" contains some important function signatures reside in this location
However its corresponding source file "apr_pools.c" which contains the implementation of those functions reside in this locationCode:D:\..\SRC\C++\MyProject\srclib\apr\include
I included this path using "Tools>Options>Project & Solution>VC++ Directories>" and in show directories selected Souce FileCode:D:\..\SRC\C++\MyProject\srclib\apr\momory\unix
But compiler is unable to find the implementation of the methods that are in apr_pool.h thus generates external unresolved symbol error
Is there any neat and efficient way of including directories when there are too many complex paths?
Thanks & Regards,
Adeel




Reply With Quote