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 » ERROR : multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'.......First defined here...
ERROR : multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'.......First defined here... [message #33569] Wed, 24 August 2011 13:40 Go to next message
Monty.mvh is currently offline  Monty.mvh
Messages: 31
Registered: July 2011
Location: Bangalore
Member
Hi friends,

I have developed a GUI which contains schema fie and multiple .cpp files...
I usually get an error only on second compilation and afterwards..
I know its a problem in header file but how to sort out this....


The error is.......

/Test1.sch:55:multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'

$blitz.o:/root/upp/MyApps/Test/Test1.sch:3: first defined here
.
.
./Test1.sch:55: multiple definition of `TABLE_R_FACEGRID(Upp::SqlSchema&)'

/$blitz.o:/root/upp/MyApps/Test/Test1.sch:55: first defined here
.
.
.
.

.
.
.
.


This runs multiple lines....


With regards
Mahanthesh



Re: ERROR : multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'.......First defined here... [message #33596 is a reply to message #33569] Sun, 28 August 2011 19:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13995
Registered: November 2005
Ultimate Member
Monty.mvh wrote on Wed, 24 August 2011 07:40

Hi friends,

I have developed a GUI which contains schema fie and multiple .cpp files...
I usually get an error only on second compilation and afterwards..
I know its a problem in header file but how to sort out this....


The error is.......

/Test1.sch:55:multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'

$blitz.o:/root/upp/MyApps/Test/Test1.sch:3: first defined here
.
.
./Test1.sch:55: multiple definition of `TABLE_R_FACEGRID(Upp::SqlSchema&)'

/$blitz.o:/root/upp/MyApps/Test/Test1.sch:55: first defined here
.
.
.
.

.
.
.
.


This runs multiple lines....


With regards
Mahanthesh






Most likely the problem is that you have put "sch_source" include into the header - it has to be in some .cpp file.

The reason why it produces the error only sometimes is BLITZ - it tends to hide this kind of issues.

Mirek
Re: ERROR : multiple definition of `TABLE_INFO_1(Upp::SqlSchema&)'.......First defined here... [message #33607 is a reply to message #33596] Tue, 30 August 2011 06:06 Go to previous message
Monty.mvh is currently offline  Monty.mvh
Messages: 31
Registered: July 2011
Location: Bangalore
Member
Thanks Mirek..
It Worked..
Previous Topic: SqlArray and updating new database data
Next Topic: EditField and Sqlite...
Goto Forum:
  


Current Time: Sun Jul 21 19:41:33 CEST 2024

Total time taken to generate the page: 0.01870 seconds