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 » Developing U++ » Mac OS » Cannot compile MYSQL project
Re: Cannot compile MYSQL project [message #52987 is a reply to message #52984] Wed, 29 January 2020 23:14 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
mirek wrote on Wed, 29 January 2020 14:05
This was tricky one.

The problem is that CLANG treats include files case insensitive. Thus <mysql/mysql.h> in fact included the package's MySql.h recursively...

I have fixed it by redoing the code to:

#ifdef PLATFORM_POSIX
#ifdef PLATFORM_OSX
#include <mysql.h>
#else
#include <mysql/mysql.h>
#endif
#endif


so with MacOS you will need to point to inside that mysql folder. Not nice, but for now it will do.

Mirek


Thank you very much!
Now I was able to overcome the include problem... but unfortunately I stopped again at the lib. Below are the new complains.

Can I ask you which library you have installed and where point your path lib? I tried with all the library I have but nothing happened. Perhaps I need to set some flag or compiler option.

Luigi
-----------------------

Undefined symbols for architecture x86_64:
"_mysql_affected_rows", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_close", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
Upp::MySqlSession::Close() in MySql.a(MySql.o)
Upp::MySqlSession::Reconnect() in MySql.a(MySql.o)
Upp::MySqlSession::~MySqlSession() in MySql.a(MySql.o)
"_mysql_errno", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
Upp::MySqlSession::MysqlQuery(char const*) in MySql.a(MySql.o)
"_mysql_error", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
Upp::MySqlSession::MysqlQuery(char const*) in MySql.a(MySql.o)
"_mysql_fetch_field_direct", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_fetch_lengths", referenced from:
Upp::MySqlConnection::Fetch() in MySql.a(MySql.o)
"_mysql_fetch_row", referenced from:
Upp::MySqlConnection::Fetch() in MySql.a(MySql.o)
"_mysql_free_result", referenced from:
Upp::MySqlConnection::Fetch() in MySql.a(MySql.o)
Upp::MySqlConnection::FreeResult() in MySql.a(MySql.o)
Upp::MySqlConnection::Cancel() in MySql.a(MySql.o)
"_mysql_init", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
"_mysql_insert_id", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_more_results", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_next_result", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_num_fields", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
"_mysql_query", referenced from:
Upp::MySqlSession::MysqlQuery(char const*) in MySql.a(MySql.o)
"_mysql_real_connect", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
"_mysql_real_escape_string", referenced from:
Upp::MySqlConnection::EscapeString(Upp::String const&) in MySql.a(MySql.o)
"_mysql_server_end", referenced from:
Upp::s__s53_fn() in MySql.a(MySql.o)
"_mysql_server_init", referenced from:
__GLOBAL__sub_I_MySql.cpp in MySql.a(MySql.o)
"_mysql_set_character_set", referenced from:
Upp::MySqlSession::DoConnect() in MySql.a(MySql.o)
"_mysql_store_result", referenced from:
Upp::MySqlConnection::Execute() in MySql.a(MySql.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

[Updated on: Wed, 29 January 2020 23:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG] keyboard shortcuts problem on an AZERTY keyboard
Next Topic: MacOS theide Issue
Goto Forum:
  


Current Time: Thu May 09 17:14:09 CEST 2024

Total time taken to generate the page: 0.02812 seconds