MySQL Forums
Forum List  »  MySQL for Visual Studio

Building mysql x86 project
Posted by: Andrew Dickinson
Date: January 11, 2015 05:16AM

if i try to build my c++ mysql project in x86 i get these errors

1> mysql.cpp
1>mysql.cpp(63): warning C4101: 'sbuffer' : unreferenced local variable
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_init@4
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_real_connect@32
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_error@4
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_query@8
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_store_result@4
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_num_fields@4
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
1>mysql.obj : error LNK2001: unresolved external symbol _mysql_fetch_lengths@4
1>C:\Users\Dickyb0b\documents\visual studio 2010\Projects\mysql\Release\mysql.exe : fatal error LNK1120: 8 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.06
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

it works fine for x64, i dont really want an x64 binary so i would like to build my project as x64, i believe my mysql installer is x86 yet i am able to build my project as x64 which is not what i wanted, can anyone help?

Options: ReplyQuote


Subject
Views
Written By
Posted
Building mysql x86 project
1992
January 11, 2015 05:16AM
766
January 11, 2015 05:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.