Re: [Quickfix-developers] [Quickfix-users] Installation of config.h
Brought to you by:
orenmnero
From: Mikhail V. <mve...@gm...> - 2010-08-18 12:03:23
|
Nazar, You still misunderstand the problem MySQLStore.h [snip] #ifndef HAVE_MYSQL #error MySQLStore.h included, but HAVE_MYSQL not defined #endif [snip] This means that in order to use MySQLStore.h one has to define HAVE_MYSQL. This is defined in config.h when the library is being built and configured. Or this macro is defined by you as a passing argument to the compiler. Once the library is built and installed the config.h file which defines the macro is not installed. So the user has to define the HAVE_MYSQL macro again in the application code that uses MySQLStore.h Same issue is with Postgres. What I think should be avoided is the application having to define the macros rather then the library providing the appropriate headers. - Regards, Mikhail Veygman -----Original Message----- From: Nazar Andrienko <na...@um...> To: 'Mikhail Veygman' <mve...@gm...> Cc: qui...@li..., qui...@li... Subject: RE: [Quickfix-users] Installation of config.h Date: Tue, 17 Aug 2010 22:30:10 +0400 You need a special build of library to use MySQL/PostgreSQL. First build the library with these macroses, then use you can use database storage capabilities. Rgds, Nazar Andrienko -----Original Message----- From: Mikhail Veygman [mailto:mve...@gm...] Sent: Tuesday, August 17, 2010 8:25 PM To: Nazar Andrienko Cc: qui...@li...; qui...@li... Subject: RE: [Quickfix-users] Installation of config.h I think you misunderstand the problem: The issue is not how to build the libraries themselves. The issue is using the libraries. When I attempt to user MySQLLog/MySQLStore and include the appropriate headers after building 1.13.3 with the appropriate flags enabled. The compiler complains that the HAVE_MYSQL or HAVE_POSTGRES if I choose the Postgres Stores is not defined. After going through the headers I found that config.h which gets created by configure script does not get installed nor it is included by any other headers in the library. config.h is the header that defines the 2 macros I have mentioned. - Regards, Mikhail Veygman -----Original Message----- From: Nazar Andrienko <na...@um...> To: 'Mikhail Veygman' <mve...@gm...> Cc: qui...@li..., qui...@li... Subject: RE: [Quickfix-users] Installation of config.h Date: Tue, 17 Aug 2010 19:27:13 +0400 Well, I'm using MSVC and as I understood, defining these macroses in project settings are the only way to add pgsql support. If you're using gcc, the you probably can pass options to ./configure script (--with-postgresql), but I'm not sure, since I've never used quickfix with GCC. Rgds, Nazar Andrienko -----Original Message----- From: Mikhail Veygman [mailto:mve...@gm...] Sent: Tuesday, August 17, 2010 6:14 PM To: Nazar Andrienko Cc: qui...@li...; qui...@li... Subject: RE: [Quickfix-users] Installation of config.h I was hoping to avoid having to define it myself. - Regards, Mikhail Veygman -----Original Message----- From: Nazar Andrienko <na...@um...> To: 'Mikhail Veygman' <mve...@gm...>, qui...@li..., qui...@li... Subject: RE: [Quickfix-users] Installation of config.h Date: Tue, 17 Aug 2010 07:16:31 +0400 Just pass this macro definition at toolchain level (using command line switches in gcc or project property pages in MSVC) and recompile quickfix library. Rgds, Nazar Andrienko -----Original Message----- From: Mikhail Veygman [mailto:mve...@gm...] Sent: Tuesday, August 17, 2010 2:50 AM To: qui...@li...; qui...@li... Subject: [Quickfix-users] Installation of config.h QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi all, I am trying to use the 1.13.3 quickfix engine with C++ and having a bit of a problem. It appears that using MySQL store and log factories and same with PostgreSQL requires a define of HAVE_MYSQL or HAVE_POSTGRES respectively These are defined in config.h file but it is nowhere to be included by quickfix headers nor is config.h installed after the build Has anyone seen this problem? Is there a fix for this problem other then having to define the variables inside my code prior to including the MySQL or Postgres headers inside my code? Regards, Mikhail Veygman ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users |