Skip to content

Patch for Makefile to compile on gcc4.5 and dirty hack for __BEGIN__ __END___ macros aswell as gcc4.5 header compatibility #7

@GoogleCodeExporter

Description

@GoogleCodeExporter
Index: imageclipper.cpp
===================================================================
--- imageclipper.cpp    (Revision 102)
+++ imageclipper.cpp    (Arbeitskopie)
@@ -21,6 +21,12 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+
+/* DIRTY FIX DIRTY FIX */
+#define __BEGIN__ {
+#define __END__ goto exit; exit: ; }
+/* DIRTY FIX DIRTY FIX */
+
 #ifdef _MSC_VER // MS Visual Studio
 #pragma warning(disable:4996)
 #pragma warning(disable:4244) // possible loss of data
Index: icformat.h
===================================================================
--- icformat.h  (Revision 102)
+++ icformat.h  (Arbeitskopie)
@@ -30,6 +30,7 @@

 #include <stdio.h>
 #include <string>
+#include <cstdio>

 /**
 * Convert format to string
Index: Makefile
===================================================================
--- Makefile    (Revision 102)
+++ Makefile    (Arbeitskopie)
@@ -9,7 +9,7 @@
 LINK = g++
 INSTALL = install
 CFLAGS = `pkg-config --cflags opencv` -I ~/usr/include/boost-1_36 -I.
-LFLAGS = `pkg-config --libs opencv` -L ~/usr/lib -lboost_system-gcc41-mt 
-lboost_filesystem-gcc41-mt
+LFLAGS = `pkg-config --libs opencv` -L ~/usr/lib -lboost_system-mt 
-lboost_filesystem-mt
 all: imageclipper

 imageclipper.o: imageclipper.cpp

Original issue reported on code.google.com by timo.witte on 26 Dec 2010 at 2:10

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions