Project

General

Profile

Bug #504

Libprelude compilation error

Added by Antoine LUONG over 11 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
07/12/2012
Due date:
% Done:

0%

Resolution:

Description

With GCC4.6 or higher, compiling the libprelude sources causes this problem :

error: 'ptrdiff_t' does not name a type

A quick fix can be to modify _PreludeEasy.cxx, a swig-generated file that can be found in the bindings/python/ directory, by adding #include <cstddef> at the beginning.
To permanently solve the problem, this file should maybe be regenerated from libpreludecpp-python.i with a more recent version of swig.

libprelude-gcc-swig.diff View (401 Bytes) Antoine LUONG, 09/04/2012 05:47 PM

History

#1 Updated by Antoine LUONG over 11 years ago

Or patch the libpreludecpp-python.i with the attached file (it works fine with GCC 4.4).

#2 Updated by Jean-Charles ROGEZ over 10 years ago

  • Target version set to 124

#3 Updated by Thomas ANDREJAK over 8 years ago

  • Target version changed from 124 to Prelude OSS 3.0.0

#4 Updated by Thomas ANDREJAK almost 8 years ago

  • Target version changed from Prelude OSS 3.0.0 to Prelude OSS 3.1.0

#5 Updated by Antoine LUONG almost 8 years ago

  • Status changed from New to Closed

The problem does not occur with recent SWIG versions.

Also available in: Atom PDF