xml2json icon indicating copy to clipboard operation
xml2json copied to clipboard

Duplicated symbol

Open MichaelVoelkel opened this issue 2 years ago • 3 comments

Hi,

there are some function definitions without static, so their linkage is external, so if I import your header from multiple translation units at once, I get duplicated symbols.

Probably, linkage needs to be internal? Not sure why no-one reported this?

MichaelVoelkel avatar Feb 04 '23 10:02 MichaelVoelkel

how could you slove the problem? I have encounter the same one

Joyrocky avatar Sep 10 '23 07:09 Joyrocky

I removed the lib :)

I used to convert XML to JSON to send it to a JS lib. Now, I let the JS lib do the conversion client-side. So probably not helpful for yourself

MichaelVoelkel avatar Sep 10 '23 09:09 MichaelVoelkel

how could you slove the problem? I have encounter the same one

Not sure if you still need this or not, but for anyone else who comes across this. I just added static to the other functions and it seems to be working.

SterlingHeaton avatar Apr 25 '24 17:04 SterlingHeaton