Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ Makefile Issues

Status
Not open for further replies.

techx

Programmer
May 24, 2001
20
US
I have a problem with getting a Makefile to compile in one of our .cpp files. The problem is we cannot change the Makefile since it comes from a vendor. We created a .cpp file that uses #include "mysqlapi.h", which is custom class we developed. Unfortunatley the class uses #include <mysql.h>. When we run the makefile it cannot find mysql.h, because the -I argument in the Makefile is not pointing to the correct directory. I need some ideas on how to have the Makefile find the mysql.h code. This has to be done without changing the Makefile. Not sure if there is some trick, or code that can accomplish this. I want other programmers here to utilize this class by just running "make -f Makefile.freebsd", wich is our usual compile routine. Any ideas would be appreciated? Thanks in advance!
 
Create a symbolic link from where the makefile looks for it, to where it actually is.


--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top