Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

mysql vc++ problem

[es] :: C/C++ programiranje :: mysql vc++ problem

[ Pregleda: 3453 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

erekoz
John Doe
Beograd

Član broj: 5960
Poruke: 148
*.tvmetropolis.com.



Profil

icon mysql vc++ problem23.01.2006. u 10:18 - pre 229 meseci
Molim pomoc sa sledecim problemom : pokushavam da se povezem na mySQL bazu preko mysql API-ja i ako imam ovakav kod :

MYSQL *myData;
MYSQL_RES *res;
MYSQL_ROW row;
char msql[2000];
int j,k;
bool connected = FALSE;

if ((myData = mysql_init((MYSQL*) 0)) && mysql_real_connect(myData,
"192.168.0.32","root", "", "", MYSQL_PORT, NULL, 0))
{
mysql_select_db(myData, "testiranje");
connected = TRUE;
}
else
{
MessageBox("Mosha, nismo se povezali!");
connected = FALSE;

}

if (connected) mysql_close(myData);

, on se iskompajlira bez problema, ali kad uradim Build dobijem sledece :

Linking...
LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dosmap.obj) : error LNK2005: __errno already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCMTD.lib(fflush.obj) : error LNK2005: _fflush already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(winsig.obj) : error LNK2005: _signal already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(setlocal.obj) : error LNK2005: _setlocale already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(getenv.obj) : error LNK2005: _getenv already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(tolower.obj) : error LNK2005: _tolower already defined in msvcrtd.lib(MSVCRTD.dll)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMTD.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/GodDamnBaza.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

GodDamnBaza.exe - 19 error(s), 2 warning(s)

... Shta nije u redu?

Hvala Unapred, erekoz

 
Odgovor na temu

[es] :: C/C++ programiranje :: mysql vc++ problem

[ Pregleda: 3453 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.