Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Another MySQL Link Issue[SOLVED]
Another MySQL Link Issue[SOLVED] [message #1614] Fri, 10 March 2006 02:07 Go to next message
Justin is currently offline  Justin
Messages: 57
Registered: March 2006
Location: Orange County California
Member
Now that I have gotten this to work in the Reference app, I am getting these link errors for my app that I have been playing around with. The app is called 'NCase'


----- CtrlLib ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 9)
----- CtrlCore ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 9)
----- RichText ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (3 / 9)
----- Draw ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 9)
----- Core ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (5 / 9)
----- plugin\png ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (6 / 9)
----- Image ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (7 / 9)
----- plugin\z ( GUI MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (8 / 9)
----- NCase ( GUI MAIN MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (9 / 9)
main.cpp
1 file(s) compiled in (0:01.51) 1516 msec/file
Linking...
main.obj : error LNK2019: unresolved external symbol "public: __thiscall Sql::~Sql(void)" (??1Sql@@QA
	E@XZ) referenced in function __unwindfunclet$??0NCase@@QAE@XZ$0
main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Sql::Fetch(void)" (?Fet
	ch@Sql@@QAE_NXZ) referenced in function "public: __thiscall NCase::NCase(void)" (??0NCase@@QAE@XZ
	)
main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Sql::Execute(class Stri
	ng const &)" (?Execute@Sql@@QAE_NABVString@@@Z) referenced in function "public: __thiscall NCase:
	:NCase(void)" (??0NCase@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall MySqlSession::Connect(c
	har const *,char const *,char const *,char const *,int,char const *)" (?Connect@MySqlSession@@QAE
	_NPBD000H0@Z) referenced in function "public: __thiscall NCase::NCase(void)" (??0NCase@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall Sql::Sql(void)" (??0Sql@@QAE
	@XZ) referenced in function "public: __thiscall NCase::NCase(void)" (??0NCase@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall SqlSession::~SqlSess
	ion(void)" (??1SqlSession@@UAE@XZ) referenced in function __unwindfunclet$??0MySqlSession@@QAE@XZ
	$0
main.obj : error LNK2019: unresolved external symbol "public: __thiscall SqlSession::SqlSession(void)
	" (??0SqlSession@@QAE@XZ) referenced in function "public: __thiscall MySqlSession::MySqlSession(v
	oid)" (??0MySqlSession@@QAE@XZ)
main.obj : error LNK2001: unresolved external symbol "protected: virtual class SqlConnection * __this
	call MySqlSession::CreateConnection(void)" (?CreateConnection@MySqlSession@@MAEPAVSqlConnection@@
	XZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall MySqlSession::B
	egin(void)" (?Begin@MySqlSession@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall MySqlSession::C
	ommit(void)" (?Commit@MySqlSession@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall MySqlSession::R
	ollback(void)" (?Rollback@MySqlSession@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual class String __thiscall SqlSess
	ion::Savepoint(void)" (?Savepoint@SqlSession@@UAE?AVString@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall SqlSession::Rol
	lbackTo(class String const &)" (?RollbackTo@SqlSession@@UAEXABVString@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall MySqlSession::I
	sOpen(void)const " (?IsOpen@MySqlSession@@UBE_NXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall MySqlSession::EnumUsers(void)" (?EnumUsers@MySqlSession@@UAE?AV?$Vector@VString@@@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall MySqlSession::EnumDatabases(void)" (?EnumDatabases@MySqlSession@@UAE?AV?$Vector@VString@@@
	@XZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall MySqlSession::EnumTables(class String)" (?EnumTables@MySqlSession@@UAE?AV?$Vector@VString@
	@@@VString@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall SqlSession::EnumViews(class String)" (?EnumViews@SqlSession@@UAE?AV?$Vector@VString@@@@VSt
	ring@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall SqlSession::EnumSequences(class String)" (?EnumSequences@SqlSession@@UAE?AV?$Vector@VStrin
	g@@@@VString@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<struct SqlColumnIn
	fo> __thiscall SqlSession::EnumColumns(class String,class String)" (?EnumColumns@SqlSession@@UAE?
	AV?$Vector@USqlColumnInfo@@@@VString@@0@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall SqlSession::EnumPrimaryKey(class String,class String)" (?EnumPrimaryKey@SqlSession@@UAE?AV
	?$Vector@VString@@@@VString@@0@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class String __thiscall SqlSess
	ion::EnumRowID(class String,class String)" (?EnumRowID@SqlSession@@UAE?AVString@@V2@0@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual class Vector<class String> __th
	iscall SqlSession::EnumReservedWords(void)" (?EnumReservedWords@SqlSession@@UAE?AV?$Vector@VStrin
	g@@@@XZ)
main.obj : error LNK2019: unresolved external symbol "bool __cdecl MySqlPerformScript(class String co
	nst &,struct StatementExecutor &,class Gate2<int,int>)" (?MySqlPerformScript@@YA_NABVString@@AAUS
	tatementExecutor@@V?$Gate2@HH@@@Z) referenced in function "public: virtual bool (__cdecl*__thisca
	ll MySqlSession::GetRunScript(void)const )(class String const &,struct StatementExecutor &,class 
	Gate2<int,int>)" (?GetRunScript@MySqlSession@@UBEP6A_NABVString@@AAUStatementExecutor@@V?$Gate2@H
	H@@@ZXZ)
main.obj : error LNK2019: unresolved external symbol "public: void __thiscall MySqlSession::Close(voi
	d)" (?Close@MySqlSession@@QAEXXZ) referenced in function "public: virtual __thiscall MySqlSession
	::~MySqlSession(void)" (??1MySqlSession@@UAE@XZ)
C:\upp\out\MSC8.Debug_full.Gui\NCase.exe : fatal error LNK1120: 25 unresolved externals

There were errors. (0:01.95)

[Updated on: Fri, 10 March 2006 18:20]

Report message to a moderator

Re: Another MySQL Link Issue [message #1622 is a reply to message #1614] Fri, 10 March 2006 09:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
NCase should "use" MySql.

Means, you do not have MySql package in your project (you are just #including headers, but that unfortunately is not enough). You must add MySql to "uses" of NCase (e.g. right click on it and choose "Add package to...".

Mirek
Re: Another MySQL Link Issue [message #1628 is a reply to message #1622] Fri, 10 March 2006 18:19 Go to previous message
Justin is currently offline  Justin
Messages: 57
Registered: March 2006
Location: Orange County California
Member
Thanks again! Smile
Previous Topic: MySQL Link Issue [SOLVED]
Next Topic: Sqlite3upp.cpp
Goto Forum:
  


Current Time: Fri Mar 29 01:10:16 CET 2024

Total time taken to generate the page: 0.02655 seconds