in reply to Re: inline c
in thread inline c

thanks, as a first test that worked. It then complained that lack of MSVCR80.dll; so put one in it path and now it complains in this way. Runtime Error! Program C:\Perl\bin\perl.exe R6034 An application has made an attempt to load the C runtime library incorreclty. Please contact the applications support team for more information. I have spent about 20 minutes googling that error without umderstand much of what I find. angel

Replies are listed 'Best First'.
Re^3: inline c
by ikegami (Patriarch) on Apr 22, 2007 at 14:58 UTC
    If you're using ActivePerl, you need to use the compiler that came with VC++/VS version 6. I think MSVCR80.dll is used by newer versions of that compiler (The one from VS2005?) and I think the compiler and the library is not compatible with perl binaries created using VS6.
      Hi, Your are quite correct in that I am using VS2005. I will check to see if I have a VS6 lying around and I will install it. Will I be able to make an .exe file with my ActiveState PDK that has the inline code incorporated? angel

      Hi

      Well I installed a VB6 on a different computer and
      install the ActiveState Perl and Komodo etc and ran the
      simple "hello world" expamle.

      this is what I get at the end of "out.make" :L

      link: invalid option -- o
      Try `link --help' for more information.
      NMAKE : fatal error U1077: 'link' : return code '0x1'
      Stop.

      I spent the better part of this afternoon trying to get
      around this. I have read most of the doc without coming
      to clar understanding of where or how I can get around this.

      All hints welcome.

      Angel

        I installed a VB6 on a different computer

        I assume you mean "VC6", not "VB6".
        There should be no trouble with Inline::C on ActivePerl, using MSVC++ 6.0.
        Try running your scripts without Komodo (to begin with, at least) - that will make troubleshooting easier.
        Also, try installing Inline::C from CPAN source. (I'm assuming you installed Inline::C using ppm.) Just download the source from http://search.cpan.org/~ingy/Inline-0.44/, extract the file to some location, 'cd' to that location and run 'perl Makefile.PL' followed by 'nmake test'. If there are no errors run 'nmake install'. If there are errors, tell us what they are. (Copy and paste the output inside <code> tags.)

        Cheers,
        Rob