Re: Unknown host error when using Connector/C++
Hello,
/MDd and /MD are basically the same - they result in linking of debug or non-debug version of the library.
Since it didn't help - could you please provide more info? Source you already has given, so project file or make file, or your build command line. And the same for mysql c++ driver.
it looked like your example application were linked against different crt lib. And driver is built (by default) w/ /MD. But since that didn't help... What else could i think of is maybe it finds "wrong" dll (e.g. from older installation).
I could build from your source with:
cl -EHsc -I"./" -I"./driver" forumUser.cpp /MD /link "driver/release/mysqlcppconn.lib"
and it runs fine (i put file w/ your source to the root of mysql c/c++ distribution; for running I copied driver dll to the same folder)
Subject
Views
Written By
Posted
6154
December 22, 2008 09:57PM
3060
December 23, 2008 01:46PM
2689
December 23, 2008 08:46PM
3226
December 23, 2008 09:16PM
Re: Unknown host error when using Connector/C++
3000
December 24, 2008 08:01AM
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.