Next Generation Emulation banner
1 - 3 of 3 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
When attempting to link the GBA dsp (1.7.2) in Visual Studio .NET, I received 61 errors along the lines of:

libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_crc_action already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_strip_16 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_dither already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gamma already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_expand already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_palette_to_rgb already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gray_1_2_4_to_8 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_tRNS_to_alpha already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_init_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_read_transform_info already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_unpack already defined in d3dx8.lib(pngrtran.obj)

Any assistance in fixing this would be appreciated.
 

·
Registered
Joined
·
59 Posts
Squeaky said:
When attempting to link the GBA dsp (1.7.2) in Visual Studio .NET, I received 61 errors along the lines of:

libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_crc_action already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_strip_16 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_dither already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gamma already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_expand already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_palette_to_rgb already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gray_1_2_4_to_8 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_tRNS_to_alpha already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_init_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_read_transform_info already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_unpack already defined in d3dx8.lib(pngrtran.obj)

Any assistance in fixing this would be appreciated.
I used vs.net 2003 and didn't occur your problem. But I think there maybe have two methods can fix your problem:

(1) add /FORECE:MULTIPLE to linker's command line option, this option tells the linker to create an output file whether or not LINK finds more than one definition for a symbol.

(2) Update your DirectX9 SDK to 2005 June version. I think the latest d3dx8.lib may not include these png functions.

Sometimes it is ok to use /FORECE:MULTIPLE option due to using third party library with source code.
 

·
Registered
Joined
·
1 Posts
When attempting to link the GBA dsp (1.7.2) in Visual Studio .NET, I received 61 errors along the lines of:

libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_crc_action already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_strip_16 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_dither already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gamma already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_expand already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_palette_to_rgb already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_gray_1_2_4_to_8 already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_set_tRNS_to_alpha already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_init_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_read_transform_info already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_read_transformations already defined in d3dx8.lib(pngrtran.obj)
libpngMD.lib(pngrtran.obj) : error LNK2005: _png_do_unpack already defined in d3dx8.lib(pngrtran.obj)

Any assistance in fixing this would be appreciated.
Link Object/library modules:
d3dx8d.lib d3d8.lib d3dx.lib wsock32.lib ddraw.lib dxguid.lib winmm.lib dinput.lib vfw32.lib opengl32.lib
Do not include d3dx3.lib
 
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top