c++ - LNK2001 error when compiling windows forms application with VC++ 2008 -


I am trying to write a small application that will work with mysql in C ++. I am using MySQL Server 5.1.41 and MySQL C ++ Connector 1.0.5. When I write a console application, then everything is fine, but when I apply equally to Windows forms (the library, the same path, the same project properties) I get these errors:

  error 1 LNK2001 error: unresolved external symbol "public: virtual int __clrcall SQL :: mysql :: MySQL_Savepoint :: getSavepointId (zero)" (getSavepointId @ MySQL_Savepoint @ mysql @ SQL @@ $$ FUAMHXZ?) test1.obj Test1 error 2 lnk2001 error: unsolved exotic symbol "Public virtual class std :: basic_string & LT; char, struct std :: char_traits & LT; four & gt ;, class std :: allocator & LT; four & gt; & gt; __clrcall SQL :: mysql :: MySQL_Savepoint :: getSavepointName (void) "(? getSavepointName @ MySQL_Savepoint @ mysql @ SQL @@ $$ FUAM? AV? $ Basic_string @ DU? $ Char_traits @ D @ std @@ V? $ allocator @ D @ 2 @@ std @ @ XZ) test1.obj test1  

follow the instructions, I got this:

  to Undecoration: - "? getSavepointId @ MySQL_Savepoint @ mysql @ SQL @@ UEAAHXZ ":" Public: Virtual Int __CDAclock class L: mysql :: MySQL_Savepoint :: getSavepoin TId (zero) __ptr64 "Undecoration: -" ??? GetSavepointName @ MySQL_Savepoint @ mysql @ sql @@ UEAAAV $ basic_string @ du $ char_traits @ d @ std @@ v $? Olocator @ D2 @@ Stud @@ Xx ": -" Public: Virtual Class Std :: basic_string & lt; Char, straight std :: char_traits & lt; Char & gt; Class std :: allocator & lt; Char & gt; & Gt; __cdecl SQL :: mysql :: MySQL_Savepoint :: getSavepointName (zero) __ptr64 " 

But what should I do?

Change common language runtime support to project + properties, normal, / clr / CLR: net


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -