Problems with libpng linker errors under Windows

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
Palin
Hazed
Posts: 96
Joined: Tue Nov 08, 2005 12:40 pm

Problems with libpng linker errors under Windows

Post by Palin »

This isn't really related to ZSNES, but doing a search I noticed a thread from 2004 where jdratlif had the same problem as me using zlib and pnglib in Windows.

http://board.zsnes.com/phpBB2/viewtopic ... ffefc62300

When I try to compile I get a stream of LNK2005 errors "function is already defined" terminated by the following:

LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

When I use /nodefaultlib, however, it tells me that there are undefined references. Has someone run into this problem before, and do they know the solution?
Palin
Hazed
Posts: 96
Joined: Tue Nov 08, 2005 12:40 pm

Post by Palin »

Bleh, nevermind. After playing with it for about an hour I realized that I had used the wrong settings when comiling libpng and zlib.
Post Reply