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 » Using SQL in multiple source files
Re: Using SQL in multiple source files [message #14777 is a reply to message #14768] Fri, 14 March 2008 14:26 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
dmcgeoch wrote on Thu, 13 March 2008 18:48

Hello all,

I have a project that I started this past summer. In it I divided the source into logical groupings to prevent having to search through a single large source file. The version of UPP that I had used (I don't remember exactly which one) and MINGW would refuse to link due to multiple declarations of the SQL variable names if I only recompiled a single file. If I rebuilt the entire project, the linking error was resolved. Now with the latest svn version (182) and MSC9 I can get the linker to complete without error. I have the schema and sqlite3 headers defined in the main include file.

I am just wondering if there is a work around, other than including all of the SQL statements in one file.

Thanks for the help,

Dave

Recompiled with MINGW and linked without an error. So the issue must be with MSC9. I still need to perform a completed rebuild for any changes to files that contain SQL statements.


Very likely, you have wrong "*_header.h" and "*_source.h" includes for .sch files. BLITZ unfortunately sometimes hides this problem.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Methods of SQL debugging
Next Topic: Catch errors with Sql.Execute
Goto Forum:
  


Current Time: Mon Aug 25 13:04:25 CEST 2025

Total time taken to generate the page: 0.05994 seconds