#1 2015-06-09 02:11:42

Luzcka
Member
From: Brazil / Chile
Registered: 2012-12-07
Posts: 20

Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

Hi!

When compiling I am getting the following message:

[dcc32 Warning] W1029 Duplicate constructor 'TSQLRecord.CreateAndFillPrepareJoined' with identical parameters will be inacessible from C++
[dcc32 Warning] W1029 Duplicate constructor 'TSQLRecord.CreateAndFillPrepareMany' with identical parameters will be inacessible from C++
[dcc32 Warning] W1029 Duplicate constructor 'TSQLRecord.CreateAndFillPrepareJoined' with identical parameters will be inacessible from C++
[dcc32 Warning] W1029 Duplicate constructor 'TSQLRecord.CreateAndFillPrepareMany' with identical parameters will be inacessible from C++
Success
Elapsed time: 00:00:01.0

But in mormot.pas, where TSQLRecord is declared, I do not see anything wrong

Any idea?
Thanks in advance!

Last edited by Luzcka (2015-06-09 02:12:14)

Offline

#2 2015-06-09 05:20:09

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

Ensure you get the latest nightly 1.18 revision.

Offline

#3 2015-06-11 02:12:32

Luzcka
Member
From: Brazil / Chile
Registered: 2012-12-07
Posts: 20

Re: Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

Hi!

Yes... I get using TortoiseGit.

git.exe fetch -v --progress "origin"

From https://github.com/synopse/mORMot
= [up to date]      master     -> origin/master

Success (1045 ms @ 10/06/2015 23:07:59)

Offline

#4 2015-06-11 03:48:26

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

I use

git pull

Offline

#5 2015-06-11 09:47:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

Those warnings comes from the fact that the constructor does not have a name in C++, so you need diverse set of parameters for the constructors.
You could ignore those warnings under Delphi.

I'm not able to reproduce the warning.
AFAIR those warning did only appear under Win64 target.
But Synopse.inc did remove them in Synopse.inc:

  {$ifdef CPUX64}
    {$define CPU64} // Delphi compiler for 64 bit CPU
    {$define CPU64DELPHI}
    {$undef CPU32}
    {$define PUREPASCAL}   // no x86 32 bit asm to be used
    {$warn DUPLICATE_CTOR_DTOR OFF} // avoid W1029 unneeded hints
  {$else CPUX64}
    {$define CPU32} // Delphi compiler for 32 bit CPU
    {$undef CPU64}
  {$endif CPUX64}

Which compiler do you use?
Perhaps this is an issue for some particular revision of it.
May be http://qc.embarcadero.com/wc/qcmain.aspx?d=100815

Please try http://synopse.info/fossil/info/2dd7891b895

Offline

#6 2015-06-12 01:16:40

Luzcka
Member
From: Brazil / Chile
Registered: 2012-12-07
Posts: 20

Re: Warning message on compile: [dcc32 Warning] W1029 Duplicate ...

Using Git Pull do not make diference in my case, Thanks for the idea!
But Arnoud show me a light... I revised my code and find the absence of  "{$I SynDprUses.inc}" inside the client .dpr file
Thanks!!!!

I am using XE7 Up1 with Windos 7 up1 64bits in a VMWare machine, but the target is 32bits.

Offline

Board footer

Powered by FluxBB