Subject: | Inline::Structs Configuration of LIB and INC are ignored when using structs |
Config for Inline C of LIB or INC parameters are ignored if the STRUCT
config parameter is stated afterwards. If STRUCT is specified before
then the STRUCT parameter is ignored. If stated in the same
configuration section then LIB and INC are ignored.
OS: HP-UX B.11.11 U 9000/800
Perl: v5.6.1 built for PA-RISC1.1-thread-multi (32bit build)
Inline version: Inline-0.44
Inline::Struct version: Inline-Struct-0.06
gcc version: 3.4.3
EXAMPLE 1:
The STRUCT configuration is ignored when the following configuration is
used.
use Inline C => (Config => STRUCTS => ['Cstruct'] );
use Inline C => (Config =>
BUILD_NOISY => 1,
LIBS => '-L/src/libdir1
-L/src/libdir2
-L/src/libdir3
-llib1 -llib2 -llib3',
INC => '-I/include/dir1 \
-I/include/dir2 \
-I/include/dir3' );
EXAMPLE 2:
The STRUCT is used and the structure methods are properly created, but
the LIBS and INC configuration is ignored.
use Inline C => (Config =>
BUILD_NOISY => 1,
LIBS => '-L/src/libdir1
-L/src/libdir2
-L/src/libdir3
-llib1 -llib2 -llib3',
INC => '-I/include/dir1 \
-I/include/dir2 \
-I/include/dir3' );
use Inline C => (Config => STRUCTS => ['Cstruct'] );
EXAMPLE 3:
The STRUCT is used and the structure methods are properly created, but
the LIBS and INC configuration is ignored.
use Inline C => (Config =>
BUILD_NOISY => 1,
STRUCTS => ['Cstruct'],
LIBS => '-L/src/libdir1
-L/src/libdir2
-L/src/libdir3
-llib1 -llib2 -llib3',
INC => '-I/include/dir1 \
-I/include/dir2 \
-I/include/dir3' );