Click here to get back home

Error in Inline C program

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Error in Inline C program Sankaran 07-19-2005
Posted by Sankaran on July 19, 2005, 2:55 am
Please log in for more thread options


Hello,

I am trying to run a program
--------------------------------------------------------------
use Inline C => DATA =>
LIBS =>
'-lE:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\clregistrywrapper';

$text = "@ARGV" || 'Inline.pm works with MSWin32. Scary...';

WinBox('Inline Text Box', $text);

__END__
__C__

#include
"E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\CLRegistry.h"

int WinBox(char* Caption, char* Text)
{
         char* entryName = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat
Reader.0\AdobeViewer\EULA";
         DWORD                dwValue                = 0.0;
         char*         subKey                = _T("");
BOOL bRead = ReadFromRegistry(entryName,dwValue,subKey);
if (TRUE == bRead)
{
                 printf("Successful Registry Read \n");
                 printf ("Dword Value: %f", dwValue);
                 }
                 else
                 {
                         printf("Successful Registry Read");
                         }
        return 0;
}
--------------------------------------------------------------
and getting the following error
--------------------------------------------------------------
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3>Perl
Hello2.pl

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xs
ubpp -typemap D:\Perl\lib\ExtUtils\typemap Hello2_pl_4b53.xs >
Hello2_pl_4b53.x
sc && D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
-MExtUtils::Command -e mv
Hello2_pl_4b53.xsc Hello2_pl_4b53.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/MyTest3 -O1 -M
D -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONT
EXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG
-DVERSION=\"
0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE Hello2_pl_4b53.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

Hello2_pl_4b53.c
C:\PROGRA~1\MICROS~3\VC98\MFC\INCLUDE\afx.h(15) : fatal error C1189:
#error : M
FC requires C++ compilation (use a .cpp suffix)
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:
nmake > out.make 2>&1

The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\_Inline\build\Hello2_p
l_4b53

To debug the problem, cd to the build directory, and inspect the output
files.

at Hello2.pl line 0
INIT failed--call queue aborted.
-----------------------------------------------------------------------------------------------------------------------------------
For this I was trying to install Inline:CPP. But I think the problem is
something else. Any clue ?

Regards,
Sankaran



Similar ThreadsPosted
Error in Perl Inline::C program running November 3, 2005, 4:00 am
Please help me on the following perl program November 21, 2005, 8:41 pm
ANN: Apache-Authen-Program 0.93 September 22, 2004, 2:37 am
New Affiliate program 80% Commission April 14, 2005, 1:25 pm
Listing all modules used by program? February 18, 2006, 7:46 pm
Program errors after module updates October 21, 2004, 9:15 am
How to invoke a CGI script within a Perl program ? May 6, 2005, 12:35 pm
Starting a perl program when I connect to the internet. September 22, 2004, 3:34 pm
Win32::GuiTest can't bring minimized program to foreground August 8, 2008, 3:10 pm
finding the most relevant keywords or phrases of a content using a perl program September 21, 2005, 7:10 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap