Thanks for the reply Doug, I am running cmake and make along side.

But I doubt it will work w/o modifying the compilation statement.

As per 
http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html,
I ll have to compile and link hypertable.cc against MySQL libs and for
that I need to pass $(mysql_config --cflags) & $(mysql_config --libs)
to gcc/g++.


On Apr 29, 1:27 am, Doug Judd <[email protected]> wrote:
> Hi Harshada,
>
> We use cmake to build Hypertable.  To add an include directory, add the
> following line to the src/cc/Tools/hypertable/CMakeLists.txt file:
>
> include_directories( <put-mysql-include-dir-here> )
>
> and then re-run cmake and re-build.
>
> - Doug
>
>
>
> On Wed, Apr 28, 2010 at 1:18 PM, Harshada <[email protected]> wrote:
> > Hi All,
>
> > I am using Hypertable as the back end to the system that I am
> > designing.
>
> > I need to connect to local mySQL database using C APIs from src/cc/
> > Tools/hypertable/hypertable.cc file (using #include<mysql.h> file).
>
> > When I include it in src/cc/Tools/hypertable/hypertable.cc I get error
> > as "mysql.h header file not found".
> > I understand that the error is because of not setting proper flags
> > during compilation of hypertable.cc file.
>
> > The proper way is:
>
> > g++ -o <object_file> $(mysql_config --cflags) hypertable.cc $
> > (mysql_config --libs)
>
> > (I have tried the interfaces in a standalone file, where such
> > compilation does work.)
>
> > I tried searching in the Make files, but could not locate the file
> > where I can change the way hypertable.cc is getting compiled.
>
> > Please let me know the path of the makefile which has the g++/gcc
> > statement for compilation of hypertable.cc so that I can change it as
> > per required.
>
> > Thanks & Regards,
> > Harshada
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hypertable Development" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<hypertable-dev%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/hypertable-dev?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Hypertable Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/hypertable-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en.

Reply via email to