Home » U++ Library support » U++ SQL » Accessing Database from multiple files
|Accessing Database from multiple files [message #21726]
||Tue, 02 June 2009 15:23
Registered: August 2007
Location: Ohio, USA
I am having a bit of problems coming up with either all my field names being either already defined:|
main.obj : error LNK2005: "void __cdecl
TABLE_SUPPLIER(class Upp::SqlSchema &)"
(?TABLE_SUPPLIER@@YAXAAVSqlSchema@Upp@@@Z) already defined
Or not defined:
error C2065: 'HIVE_TYPE' : undeclared identifier
What I have is BeekPRO.h (only revelant portions):
#define SCHEMADIALECT <plugin/sqlite3/Sqlite3Schema.h>
#define MODEL <BeekPRO/BeekPRO.sch>
I've tried moving the sch_source.h include from BeekPRO.h to BeekPRO.cpp thinking that the sch_header.h was just the definitions but sch_source.h was the actual source but that is not making a difference.
What I want is to be able to access the schema data from many .cpp files, thus, I can take an application that is getting more complex every minute and break it into smaller manageable files:
* BeekPRO.cpp - main file
* Apiary.cpp - Add/Edit/Remove apiaries
* Hive.cpp - Add/Edit/Remove hives
* Supplier.cpp - Add/Edit/Remove suppliers
* ... etc ...
Current Time: Wed Apr 01 13:31:51 CEST 2020
Total time taken to generate the page: 0.02336 seconds