Home » Community » Newbie corner » Report & sch file
Re: Report & sch file [message #37616 is a reply to message #37615] |
Fri, 26 October 2012 17:34 |
|
idkfa46 wrote on Fri, 26 October 2012 16:02 | The second and last question is about sch files. The HomeBudget example present a sch file with 4 different tables and in each one have defined "INT_ (ID) ". When i try to do the same i receive the following error:
LibSetting.obj : error LNK2005: "class Upp::SqlId ID" (?ID@@3VSqlId@Upp@@A) already defined in Legno.obj
C:\upp\out\MyUPPdrop2\MSC9.-Wall.Debug.Debug_Full.Gui.Sse2\STA.exe : fatal error LNK1169: one or more multiply defined symbols found
|
Hi Matteo,
If you look more closely on the sch file in HomeBudget, you'll find out that it actually contains only one "INT_(ID)" and three "INT(ID)". The difference is that the variant with '_' defines a global SqlId with the same name, which can be obviously present only once, else you get error about multiple symbols with same name when linking.
So the solution is to either use unique column names, or use INT_ macro for one of them only and define the rest with INT. Just for completeness: the columns defined with INT can be accessed as "ID.Of(TABLENAME)".
The report part of the question will have to wait for someone else, I don't know report good enough to answer Maybe it would be better if you posted each question as separate thread next time
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Wed May 08 18:30:57 CEST 2024
Total time taken to generate the page: 0.02643 seconds
|