Project

General

Profile

Bug #504

Libprelude compilation error

Added by Antoine LUONG about 7 years ago. Updated over 3 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 almost 7 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 almost 6 years ago

  • Target version set to 124

#3 Updated by Thomas ANDREJAK almost 4 years ago

  • Target version changed from 124 to Prelude OSS 3.0.0

#4 Updated by Thomas ANDREJAK over 3 years ago

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

#5 Updated by Antoine LUONG over 3 years ago

  • Status changed from New to Closed

The problem does not occur with recent SWIG versions.

Also available in: Atom PDF