Aha, yes that seems to solve it, thanks, moving test.cpp before the library specification in the command line resolved the problem. Now to work out how to get auto* to do that for me.

Thanks

Paul Gregory

On 1/29/07, Danny Smith <dannysmith@clear.net.nz> wrote:

-----Original Message-----
From: mingw-users-bounces@lists.sourceforge.net
[mailto:mingw-users-bounces@lists.sourceforge.net ] On Behalf Of Paul
Gregory
Sent: Monday, 29 January 2007 1:54 p.m.
To: mingw-users@lists.sourceforge.net
Subject: [Mingw-users] Help resolving a linking problem


Hi all,

I've been banging my head against a wall for some time now trying to get
the OpenEXR libraries to compile with MinGW.

"Why do I get "undefined reference" errors from the linker?"  is an
entry in the MingWiki
http://www.mingw.org/MinGWiki/index.php/FAQ?PHPSESSID=abce11154a632520eb
5a97a314c97fd9

Does that help?

Danny




--
Paul Gregory
http://www.aqsis.org
ICQ: 156088409