List:MySQL++« Previous MessageNext Message »
From:Attila Date:November 24 2008 8:33pm
Subject:Static Library compilation difficulties on vc2008
View as plain text  
Hi All,

I am new to MySql++. I would like to try out the examples, however I do not
have libmysqlpp.lib or libmysqlpp_d.lib.  How do I get it to build on
windows vc2008?
The documentation just says "build it".

I am looking at the files in *mysql++-3.0.7\lib *and have added them to
their own vc2008 project and I get errors like:

1>c:\p4_perforce1666_aaros2-xp\dev\aaros\dm3\simtools\externalfiles\mysql++-3.0.7\lib\type_info.cpp(58)
: warning C4273: 'types' : inconsistent dll linkage
1>
c:\p4_perforce1666_aaros2-xp\dev\aaros\dm3\simtools\externalfiles\mysql++-3.0.7\lib\type_info.h(281)
: see previous definition of 'private: static
mysqlpp::mysql_ti_sql_type_info const * const
mysqlpp::mysql_type_info::types'
1>c:\p4_perforce1666_aaros2-xp\dev\aaros\dm3\simtools\externalfiles\mysql++-3.0.7\lib\type_info.cpp(58)
: error C2491: 'mysqlpp::mysql_type_info::types' : definition of dllimport
static data member not allowed
1>c:\p4_perforce1666_aaros2-xp\dev\aaros\dm3\simtools\externalfiles\mysql++-3.0.7\lib\type_info.cpp(202)
: warning C4273: 'num_types' : inconsistent dll linkage
1>
c:\p4_perforce1666_aaros2-xp\dev\aaros\dm3\simtools\externalfiles\mysql++-3.0.7\lib\type_info.h(282)
: see previous definition of 'private: static int const
mysqlpp::mysql_type_info::num_types'


Is there a guide which I can refer to to build the static libraries?

Thanks,


-- 
Attila
Software Developer
atteeela@stripped

Thread
Static Library compilation difficulties on vc2008Attila24 Nov
  • Re: Static Library compilation difficulties on vc2008Warren Young24 Nov
    • Re: Static Library compilation difficulties on vc2008Attila24 Nov
      • Re: Static Library compilation difficulties on vc2008Warren Young24 Nov
        • Re: Static Library compilation difficulties on vc2008Attila3 Dec
Re: Static Library compilation difficulties on vc2008Warren Young3 Dec