List:MySQL++« Previous MessageNext Message »
From:Attila Date:December 3 2008 8:36pm
Subject:Re: Static Library compilation difficulties on vc2008
View as plain text  
I changed 'dll' to lib.  I was able to compile mysql++ in vc2008 project.
However in the options it generates a "Multi-threaded Debug DLL (/MDd)"
project. I need a static lib however.

I modified the vc2008 project to be "Multi-threaded Debug" (/MTd) instead.
I was able to remove all errors by setting the preprocessor definition of:
MYSQLPP_NO_DLL in the project.

I am having some weird linking errors related to mysqlclient.lib now.  The
output of the compilation follows at the bottom.

Compilation output:

1>myclass.obj : warning LNK4217: locally defined symbol
??0Connection@mysqlpp@@QAE@_N@
- Show quoted text -
Z (public: __thiscall mysqlpp::Connection::Connection(bool)) imported in
function "protected: virtual bool __thiscall shc::mediator::GUIStart(struct
st::mediator::cmediator::INFO &)" (?GUIStart@mediator@st@
@MAE_NAAUINFO@cmediator@mediator@st@@@Z)
1>mysqlclient.lib(libmysql.obj) : error LNK2019: unresolved external symbol
__db_push_ referenced in function _mysql_debug@4
1>mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__no_db_
1>mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(mf_loadpath.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(my_getwd.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_lib.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_compress.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(mf_fn_ext.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_once.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_messnc.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(mf_dirname.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(my_error.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(viossl.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(viosslfactories.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(my_time.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(typelib.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(array.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(mf_format.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_read.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(list.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_alloc.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(vio.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(net_serv.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(safemalloc.obj) : error LNK2001: unresolved external
symbol __db_on_
1>mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(client.obj) : error LNK2019: unresolved external symbol
__db_on_ referenced in function _free_old_query
1>mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(charset.obj) : error LNK2001: unresolved external symbol
__db_on_
1>mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(mf_loadpath.obj) : error LNK2001: unresolved external
symbol __db_doprnt_
1>mysqlclient.lib(my_getwd.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(my_lib.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(my_compress.obj) : error LNK2001: unresolved external
symbol __db_doprnt_
1>mysqlclient.lib(mf_fn_ext.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(my_once.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(my_messnc.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(mf_dirname.obj) : error LNK2001: unresolved external
symbol __db_doprnt_
1>mysqlclient.lib(my_error.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(viossl.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(viosslfactories.obj) : error LNK2001: unresolved external
symbol __db_doprnt_
1>mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __db_doprnt_
1>mysqlclient.lib(my_time.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(typelib.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(array.obj) : error LNK2001: unresolved external symbol
__db_doprnt_
1>mysqlclient.lib(mf_format.obj) : error LNK2001: unresolved external symbol
__db_doprnt_


On Mon, Nov 24, 2008 at 5:50 PM, Warren Young <mysqlpp@stripped> wrote:

> On Nov 24, 2008, at 3:40 PM, Attila wrote:
>
>  I looked through the README, but it does not actually say much about
>> building.
>>
>
> Looking at the .bkl file, it seems there is no /M flags in it directly.
>  They must be inferred by Bakefile.  Try changing the <dll> tags to
> <lib>
> instead.  That should do it.  You might have to read the Bakefile docs.
>
>  Am I supposed to adjust parameters in the blk file and then regenerate and
>> the solution files created will automatically be good?
>>
>
> That's the idea, yes.  If it doesn't work for you, report what you changed
> and what symptoms you got.
>
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:
> http://lists.mysql.com/plusplus?unsub=1
>
>


-- 
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