octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add -lgdi32 to linker libraries on windows platform


From: Benjamin Lindner
Subject: add -lgdi32 to linker libraries on windows platform
Date: Fri, 30 Jan 2009 18:41:44 +0100
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Hello,

as octave 3.1.x now uses calls of the windows GDI subsystem (GetDeviceCaps() in display.cc), -lgdi32 should be added to linker libraries. (As octave is still a console application, -lgdi32 is not included by mingw's gcc by default)

I had a look at the configure code, and found a suitable - and hopefully appropriate - place to add -lgdi32.

Please see the attached changeset

Might this also concern a cygwin build?

benjamin
# HG changeset patch
# User Benjamin Lindner <address@hidden>
# Date 1233223828 -3600
# Node ID 89804c0060de2445b5af30ff41ea53bab09a456a
# Parent  540bcdbbe717209c0317cf9e6df5742beba34a2d
add -lgdi32 to LIBS on windows target

diff -r 540bcdbbe717 -r 89804c0060de configure.in
--- a/configure.in      Wed Jan 28 08:25:40 2009 +0100
+++ b/configure.in      Thu Jan 29 11:10:28 2009 +0100
@@ -1410,7 +1410,7 @@
    LIBS="$LIBS -lwsock32"
   ;;
   *-*-msdosmsvc* | *-*-mingw*)
-  LIBS="$LIBS -lws2_32 -lkernel32"
+  LIBS="$LIBS -lgdi32 -lws2_32 -lkernel32"
   ;;
 esac
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]