You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@corinthia.apache.org by Peter Kelly <pm...@apache.org> on 2014/12/30 14:54:47 UTC
Compile errors on windows
I noticed with the recent changes to CMakeLists.txt on windows I get the following compile errors:
Warning 1 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFBDT.obj 1 1 DocFormats (DocFormats\DocFormats)
Warning 2 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFTable.obj 1 1 DocFormats (DocFormats\DocFormats)
Warning 3 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSS.obj 1 1 DocFormats (DocFormats\DocFormats)
Warning 4 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSSLength.obj 1 1 DocFormats (DocFormats\DocFormats)
Warning 5 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSSParser.obj 1 1 DocFormats (DocFormats\DocFormats)
Any idea what’s leading to this? As far as I can see the files are only linked to once
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
Re: Compile errors on windows
Posted by Peter Kelly <pm...@apache.org>.
> On 30 Dec 2014, at 8:54 pm, Peter Kelly <pm...@apache.org> wrote:
>
> I noticed with the recent changes to CMakeLists.txt on windows I get the following compile errors:
>
> Warning 1 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFBDT.obj 1 1 DocFormats (DocFormats\DocFormats)
> Warning 2 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFTable.obj 1 1 DocFormats (DocFormats\DocFormats)
> Warning 3 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSS.obj 1 1 DocFormats (DocFormats\DocFormats)
> Warning 4 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSSLength.obj 1 1 DocFormats (DocFormats\DocFormats)
> Warning 5 warning LNK4042: object specified more than once; extras ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSSParser.obj 1 1 DocFormats (DocFormats\DocFormats)
>
> Any idea what’s leading to this? As far as I can see the files are only linked to once
Never mind; I just realised there was a duplicate $<TARGET_OBJECTS:core> in DocFormats/CMakeLists.txt.
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
Re: Compile errors on windows
Posted by jan i <ja...@apache.org>.
On 30 December 2014 at 14:54, Peter Kelly <pm...@apache.org> wrote:
> I noticed with the recent changes to CMakeLists.txt on windows I get the
> following compile errors:
>
> Warning 1 warning LNK4042: object specified more than once; extras
> ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFBDT.obj
> 1 1 DocFormats (DocFormats\DocFormats)
> Warning 2 warning LNK4042: object specified more than once; extras
> ignored Y:\formats\build\DocFormats\core\core.dir\Debug\DFTable.obj
> 1 1 DocFormats (DocFormats\DocFormats)
> Warning 3 warning LNK4042: object specified more than once; extras
> ignored Y:\formats\build\DocFormats\core\core.dir\Debug\CSS.obj 1
> 1 DocFormats (DocFormats\DocFormats)
> Warning 4 warning LNK4042: object specified more than once; extras
> ignored
> Y:\formats\build\DocFormats\core\core.dir\Debug\CSSLength.obj 1 1
> DocFormats (DocFormats\DocFormats)
> Warning 5 warning LNK4042: object specified more than once; extras
> ignored
> Y:\formats\build\DocFormats\core\core.dir\Debug\CSSParser.obj 1 1
> DocFormats (DocFormats\DocFormats)
>
> Any idea what’s leading to this? As far as I can see the files are only
> linked to once
>
the CMakeFile.txt lists the groupSource twice in the add_library statement
(or something like that) I have changed it in my local branch, I will dig
it out at commit to master.
rgds
jan I.
Ps. Just have to look at all your commits, one title make me wonder "moved
3rdparty" that is something I did a while ago.
>
> —
> Dr Peter M. Kelly
> pmkelly@apache.org
>
> PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
> (fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
>
>