[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Openexr-devel] Small fix for OpenEXR compile error
From: |
Ejner Fergo |
Subject: |
[Openexr-devel] Small fix for OpenEXR compile error |
Date: |
Sat, 6 Oct 2012 09:29:15 +0200 |
Hola,
I just tried to compile OpenEXR from
https://github.com/openexr/openexr on Fedora 17 64bit but got an
error:
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../config -pthread -I/usr/local/include/OpenEXR -I.. -I../config
-pipe -g -O2 -MT ImfHuf.lo -MD -MP -MF .deps/ImfHuf.Tpo -c -o
ImfHuf.lo ImfHuf.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -pthread
-I/usr/local/include/OpenEXR -I.. -I../config -pipe -g -O2 -MT
ImfHuf.lo -MD -MP -MF .deps/ImfHuf.Tpo -c ImfHuf.cpp -fPIC -DPIC -o
.libs/ImfHuf.o
In file included from ImfHuf.cpp:50:0:
./ImfAutoArray.h: In instantiation of 'Imf::AutoArray<T,
size>::AutoArray() [with T = int; int size = 65537]':
ImfHuf.cpp:300:34: required from here
./ImfAutoArray.h:60:40: error: 'memset' was not declared in this
scope, and no declarations were found by argument-dependent lookup at
the point of instantiation [-fpermissive]
I could fix it by including string.h in ImfAutoArray.h so very easy (I
wouldn't call myself a developer!). Here's the diff:
--- ImfAutoArray.h.orig 2012-10-06 09:17:07.692526638 +0200
+++ ImfAutoArray.h 2012-10-06 09:16:34.150896786 +0200
@@ -44,6 +44,7 @@
//
//-----------------------------------------------------------------------------
+#include <string.h>
#include "ImfNamespace.h"
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Hope this is useful to you.
Best regards,
Ejner Fergo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Openexr-devel] Small fix for OpenEXR compile error,
Ejner Fergo <=