in reply to Re: perldoc for InlineX
in thread perldoc for InlineX

waporI cannot get any examples in perldoc Inline or the C-Cookbook to work: every attempt to fiddle with the syntax leads to new error messages.

Uhmmm. I tried my example from below under WinXP, MSVC++6 (SP6) (VStudio 98),
Perl 5.8.8 (Activestate) and Inline V.0.44 (from Activestate ppm repository).

I didn't have the slightest problems. The only "nonstandard" thing I did
was to extract nmake 1.5 from M.S. and put it somwhere into the PATH.

What's your configuration anyway?

Regards

mwa

Replies are listed 'Best First'.
Re^3: perldoc for InlineX
by wapoor (Novice) on Oct 08, 2007 at 19:28 UTC
    Putting nmake in the path is a new suggestion. Thanks. I'm not sure which configuration you meant (that is not a joke), so here goes with the information: MS Windows XP, Version 2002, Service Pack 2. Active State Perl 5.8.6 for Win32. Visual C++ 6.0. Here are the system responses when I tried the example you sent me (thanks, BTW): D:\perl utility programs>perl wma.txt ***************** This module is deprecated. Please install the latest version of InlineX::C2XS instead ***************** Can't open D:\perl\config for output. Permission denied at -e line 0 BEGIN failed--compilation aborted. Failed to autogenerate D:\perl utility programs\try InlineX\_Inline\config. at wma.txt line 10 BEGIN failed--compilation aborted at wma.txt line 27. D:\perl utility programs\try InlineX>perl wma.txt ***************** This module is deprecated. Please install the latest version of InlineX::C2XS instead ***************** Can't open D:\perl\config for output. Permission denied at -e line 0 BEGIN failed--compilation aborted. Failed to autogenerate D:\perl utility programs\try InlineX\_Inline\config. at wma.txt line 10 BEGIN failed--compilation aborted at wma.txt line 27. --- Does that provide any clues? Note: I created the folder D:\perl\config today, and the permissions look correct.
      wapoor[Some compilation Errors]

      Ahh, "config" is the file which Inline dumps
      into a subdir "_Inline" of the current script dir.

      I t looks like there's sth. wrong on your machine
      maybe inline doesn't like the path with spaces in it.
       Failed to autogenerate D:\perl utility programs\try InlineX\_Inline\config
      
      Oterwise, I'd recommend upgrading (deinstalling, cleaning of the d:\perl\
      program directory completely and reinstalling the actual build 822.
      The 5.8.6 is fairly old!

      Do you have VC++6 Service Pack 6 installed? Check your PATH if another
      compiler whatsoever may come into the way (but your actual problem is,
      as can be seen above, different).

      much luck

      mwa
        As you suggested, I put nmake in the path. I also moved the code file to a folder with no spaces in the name. And here is perl's response (which I will try to format correctly -- sorry about the last note).
        C:\Temp\herehere>perl wma.txt ***************** This module is deprecated. Please install the latest version of Inline +X::C2XS instead ***************** 'nmake' is not recognized as an internal or external command, operable program or batch file. 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: C:\Temp\herehere\_Inline\build\wma_txt_8d90 To debug the problem, cd to the build directory, and inspect the outpu +t files. at wma.txt line 9 BEGIN failed--compilation aborted at wma.txt line 26. C:\Temp\herehere
        What should I look for in the output files? Other than that, I will gladly update the version of perl as you have suggested. Thanks.