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 » SQL_MySql reference example only compiles in debug mode
SQL_MySql reference example only compiles in debug mode [message #37921] Fri, 23 November 2012 13:48 Go to next message
Alboni is currently offline  Alboni
Messages: 199
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
System: Windows Xp (up to date)
MSC10
UPP 4677
MySQL 5.5

When I compile the reference/SQL_MySql example in debug mode, it works. When I compile "Optimal" I get the following compilation error:

C:\upp\uppsrc\MySql\MySql.cpp(275) : error C2018: unknown character '0x40'

See also attachment.
  • Attachment: SQL_MySql.PNG
    (Size: 75.21KB, Downloaded 180 times)
Re: SQL_MySql reference example only compiles in debug mode [message #37922 is a reply to message #37921] Fri, 23 November 2012 14:12 Go to previous messageGo to next message
Alboni is currently offline  Alboni
Messages: 199
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
When I counter that with:

#ifdef __DEBUG
DDUMP(rows);
#endif

It compiles but I get a link error:
LINK : fatal error LNK1181: cannot open input file 'opt\libmysql.lib'

The C:\Program Files\MySQL\MySQL Server 5.5\lib directory only has a debug subfolder, no opt.

after copying the debug folder to an opt folder it goes.
I copied libmysql.lib to the debug folder before. Not pretty, but does the trick.
Re: SQL_MySql reference example only compiles in debug mode [message #37923 is a reply to message #37921] Fri, 23 November 2012 14:23 Go to previous message
Alboni is currently offline  Alboni
Messages: 199
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
Upgraded Upp. Fixed. Embarassed

Previous Topic: Store empty string to database
Next Topic: Weird Date bevaviour in Sqlite
Goto Forum:
  


Current Time: Sun Nov 01 01:33:28 CET 2020

Total time taken to generate the page: 0.01198 seconds