in reply to Re^2: problem installing DBD::Pg
in thread problem installing DBD::Pg
On Windows, running that perl script with my Platform SDK compiler (14.00.40310.41), I get:use strict; use warnings; use Inline C => <<'END_OF_C'; static int errno; void foo() { printf("errno: %d\n", errno); } END_OF_C foo();
I get the same problem with mingw (gcc) compilers - with slightly different error messages.Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. --snip-- cl -c -I"C:/_32/pscrpt/inline" -nologo -GF -W3 -MD -Zi -DNDEBUG +-Ox -GL -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVA +TIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONT +EXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -MD -Zi -DNDEBUG -Ox -GL -fp:pre +cise -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\_64\ap1600\l +ib\CORE" try_pl_3645.c try_pl_3645.c try_pl_3645.c(210) : error C2129: static function 'int *_errno(void)' +declared but not defined C:\_64\Platform_SDK\Include\crt\errno.h(54) : see declaration +of '_errno' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: C:\_64\PLATFO~1\Bin\nmake.exe > out.make 2>&1 The build directory was: C:\_32\pscrpt\inline\_Inline\build\try_pl_3645 To debug the problem, cd to the build directory, and inspect the outpu +t files. at try.pl line 12. ...propagated at C:/_64/ap1600/site/lib/Inline/C.pm line 772. BEGIN failed--compilation aborted at try.pl line 12.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: problem installing DBD::Pg
by Anonymous Monk on Jan 23, 2020 at 08:59 UTC | |
by syphilis (Archbishop) on Jan 23, 2020 at 10:59 UTC | |
by Tux (Canon) on Jan 23, 2020 at 12:06 UTC | |
by syphilis (Archbishop) on Jan 23, 2020 at 13:11 UTC | |
by syphilis (Archbishop) on Jan 24, 2020 at 06:10 UTC |