Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rando

Pages: [1]
1
VisualC++ / Re: msvc10 client build errors
« on: August 19, 2010, 01:05:07 am »
I am now building in MSVC 10.0 with the latest head and getting the same exact errors when trying to build the client

2
VisualC++ / Re: msvc10 client build errors
« on: August 18, 2010, 07:22:44 am »
Thank you for the info.  When I get home from work I will look into this.  A stupid question:  I am running 64-bit windows, dows this mean I need the 64-bit library?  Or can I still build for 32-bit target with the 32-bit libraries?

3
VisualC++ / Re: msvc10 client build errors
« on: August 18, 2010, 06:02:46 am »
I did. 

For dal.obj, there are many _mysql_* symbols symbols unresolved.  I added the mysql library path to the project, as well as copying the libmysql.dll to the ps directory. 

In libpsrpgrules.lib, a pslog::LogMessage(...) is undefined.

Any idea where these symbols are defined that I may not have included?

The link errors I get are as follows(This is in 2005, as I have many more problems in 2010):

Error   1   error LNK2019: unresolved external symbol _mysql_close@4 referenced in function "public: virtual __thiscall psMysqlConnection::~psMysqlConnection(void)" (??1psMysqlConnection@@UAE@XZ)   dal.obj   
Error   2   error LNK2019: unresolved external symbol _mysql_options@12 referenced in function "public: virtual bool __thiscall psMysqlConnection::Initialize(char const *,unsigned int,char const *,char const *,char const *,class LogCSV *)" (?Initialize@psMysqlConnection@@UAE_NPBDI000PAVLogCSV@@@Z)   dal.obj   
Error   3   error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function "public: virtual bool __thiscall psMysqlConnection::Initialize(char const *,unsigned int,char const *,char const *,char const *,class LogCSV *)" (?Initialize@psMysqlConnection@@UAE_NPBDI000PAVLogCSV@@@Z)   dal.obj   
Error   4   error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "public: virtual bool __thiscall psMysqlConnection::Initialize(char const *,unsigned int,char const *,char const *,char const *,class LogCSV *)" (?Initialize@psMysqlConnection@@UAE_NPBDI000PAVLogCSV@@@Z)   dal.obj   
Error   5   error LNK2019: unresolved external symbol _mysql_thread_init@0 referenced in function "public: virtual bool __thiscall psMysqlConnection::Initialize(char const *,unsigned int,char const *,char const *,char const *,class LogCSV *)" (?Initialize@psMysqlConnection@@UAE_NPBDI000PAVLogCSV@@@Z)   dal.obj   
Error   6   error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function "public: virtual bool __thiscall psMysqlConnection::Initialize(char const *,unsigned int,char const *,char const *,char const *,class LogCSV *)" (?Initialize@psMysqlConnection@@UAE_NPBDI000PAVLogCSV@@@Z)   dal.obj   
Error   7   error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function "public: virtual bool __thiscall psMysqlConnection::Close(void)" (?Close@psMysqlConnection@@UAE_NXZ)   dal.obj   
Error   8   error LNK2019: unresolved external symbol _mysql_error@4 referenced in function "public: virtual char const * __thiscall psMysqlConnection::GetLastError(void)" (?GetLastError@psMysqlConnection@@UAEPBDXZ)   dal.obj   
Error   9   error LNK2019: unresolved external symbol _mysql_escape_string@12 referenced in function "public: virtual void __thiscall psMysqlConnection::Escape(class csString &,char const *)" (?Escape@psMysqlConnection@@UAEXAAVcsString@@PBD@Z)   dal.obj   
Error   10   error LNK2019: unresolved external symbol _mysql_affected_rows@4 referenced in function "public: virtual unsigned long __cdecl psMysqlConnection::CommandPump(char const *,...)" (?CommandPump@psMysqlConnection@@UAAKPBDZZ)   dal.obj   
Error   11   error LNK2019: unresolved external symbol _mysql_query@8 referenced in function "public: virtual unsigned long __cdecl psMysqlConnection::CommandPump(char const *,...)" (?CommandPump@psMysqlConnection@@UAAKPBDZZ)   dal.obj   
Error   12   error LNK2019: unresolved external symbol _mysql_insert_id@4 referenced in function "public: virtual unsigned __int64 __thiscall psMysqlConnection::GetLastInsertID(void)" (?GetLastInsertID@psMysqlConnection@@UAE_KXZ)   dal.obj   
Error   13   error LNK2019: unresolved external symbol _mysql_stmt_init@4 referenced in function "public: __thiscall dbRecord::dbRecord(struct st_mysql *,char const *,char const *,unsigned int,class LogCSV *,char const *,unsigned int)" (??0dbRecord@@QAE@PAUst_mysql@@PBD1IPAVLogCSV@@1I@Z)   dal.obj   
Error   14   error LNK2019: unresolved external symbol _mysql_stmt_close@4 referenced in function "public: virtual __thiscall dbRecord::~dbRecord(void)" (??1dbRecord@@UAE@XZ)   dal.obj   
Error   15   error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function "public: __thiscall psResultSet::psResultSet(struct st_mysql *)" (??0psResultSet@@QAE@PAUst_mysql@@@Z)   dal.obj   
Error   16   error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function "public: __thiscall psResultSet::psResultSet(struct st_mysql *)" (??0psResultSet@@QAE@PAUst_mysql@@@Z)   dal.obj   
Error   17   error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function "public: __thiscall psResultSet::psResultSet(struct st_mysql *)" (??0psResultSet@@QAE@PAUst_mysql@@@Z)   dal.obj   
Error   18   error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function "public: virtual __thiscall psResultSet::~psResultSet(void)" (??1psResultSet@@UAE@XZ)   dal.obj   
Error   19   error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function "public: virtual int __thiscall psResultRow::Fetch(int)" (?Fetch@psResultRow@@UAEHH@Z)   dal.obj   
Error   20   error LNK2019: unresolved external symbol _mysql_data_seek@12 referenced in function "public: virtual int __thiscall psResultRow::Fetch(int)" (?Fetch@psResultRow@@UAEHH@Z)   dal.obj   
Error   21   error LNK2019: unresolved external symbol _mysql_field_seek@8 referenced in function "public: virtual char const * __thiscall psResultRow::operator[](char const *)" (??ApsResultRow@@UAEPBDPBD@Z)   dal.obj   
Error   22   error LNK2019: unresolved external symbol _mysql_fetch_field@4 referenced in function "public: virtual char const * __thiscall psResultRow::operator[](char const *)" (??ApsResultRow@@UAEPBDPBD@Z)   dal.obj   
Error   23   error LNK2019: unresolved external symbol _mysql_stmt_execute@4 referenced in function "public: virtual bool __thiscall dbRecord::Execute(unsigned int)" (?Execute@dbRecord@@UAE_NI@Z)   dal.obj   
Error   24   error LNK2019: unresolved external symbol _mysql_stmt_bind_param@8 referenced in function "public: virtual bool __thiscall dbRecord::Execute(unsigned int)" (?Execute@dbRecord@@UAE_NI@Z)   dal.obj   
Error   25   error LNK2019: unresolved external symbol _mysql_stmt_param_count@4 referenced in function "public: virtual bool __thiscall dbRecord::Execute(unsigned int)" (?Execute@dbRecord@@UAE_NI@Z)   dal.obj   
Error   26   error LNK2019: unresolved external symbol _mysql_stmt_prepare@12 referenced in function "public: virtual bool __thiscall dbInsert::Prepare(void)" (?Prepare@dbInsert@@UAE_NXZ)   dal.obj   
Error   27   fatal error LNK1120: 26 unresolved externals   ..\..\dbmysql.dll   
Error   28   error LNK2019: unresolved external symbol "void __cdecl pslog::LogMessage(char const *,int,char const *,int,enum LOG_TYPES,unsigned int,char const *,...)" (?LogMessage@pslog@@YAXPBDH0HW4LOG_TYPES@@I0ZZ) referenced in function "public: class psMoney __thiscall psMoney::operator-(class psMoney const &)const " (??GpsMoney@@QBE?AV0@ABV0@@Z)   libpsrpgrules_d.lib   
Error   29   fatal error LNK1120: 1 unresolved externals   ..\..\testrpgrules.exe   



4
VisualC++ / Re: msvc10 client build errors
« on: August 17, 2010, 07:56:34 pm »
With the latest head, I still get the link errors in 2010 and 2005.  (Updated from repository @ 7:56 CST)

5
VisualC++ / Re: MSVC 8.0 CS Build Problem
« on: August 17, 2010, 04:47:01 pm »
Followup:

The SDK doesn't contain the tool.  I used gimp to save the 32x32 png of the icon as a 32x32, 8-bit alpha .ico (the XP format of .ico) and the libraries build successfully.

That being said, others claim to use VS 2005 to build the code, is there a solution that doesn't involve changing from the repository files?

6
VisualC++ / Re: msvc10 client build errors
« on: August 17, 2010, 04:21:18 pm »
I had similar problems in 2010, however, the libraries in which there were unresolved externs weren't Cal related.  I don't know if the guide is missing a step or if the lib path details are different in 2010 (I believe this is probably the case).

FYI:
I'm running Windows 7 64-bit, not that it should make a difference.

7
VisualC++ / MSVC 8.0 CS Build Problem
« on: August 17, 2010, 04:16:34 pm »
I recently started following the windows MSVC build guide.  I have all of the repositories mapped and up to date.  When I try to build CS, the entire build works except I get an error for startme.ico in /apps/tools/startme/

The error is "Old DIB, Pass through SDKPAINT" or some such error.  I am wondering if this means I didn't install SP1 correctly, as I am running windows 7 64-bit and all I can find about SDKPAINT is that it relates to old resource compilers not working with Vista+ format icons.

I am presently installing SP1 again, as well as downloading the win7 SDK (which I believe contains the said utility).  However, if someone else has had a similar problem or more experience with Windows, please fill me in.


This issue was not present when building with MSVC 10.0 (VS 2010), but in there, after building CS, I ran into issues building PS and would like to use 8.0 since that is the version the guide is based on and I believe the most commonly used.

Pages: [1]