in reply to Re^2: inline c
in thread inline c

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.

Replies are listed 'Best First'.
Re^4: inline c
by panaman (Acolyte) on Apr 22, 2007 at 16:09 UTC
    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
Re^4: inline c
by panaman (Acolyte) on Apr 22, 2007 at 23:54 UTC

    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

        Hi Rob et. al.

        Actually it was Visual Studio 6 which is the C compiler. When I run the the scripts from the command line I get the same errors that I get inside Komodo. I did install the Inline::C with ppm and it was 0.44 and seemed to go fine but I will download it and install it manually just to be sure. I will write to you with the <code> tags.

        Angel

        Hi,

        I did the download and the manual perl Makefile.pl that
        seemed fine, thenI did the nmake test and was mostly errors.
        To many to list here so I placed the text file at:

        http://volcanbaru.com/OSOP/monks/
        the txt file is the output of the perl Makefile.pl
        and the nmake test.
        I have also zipped the entire folder in case it helps.
        I read that errors messages and the were mostly quite cryptic.
        What should I try next?

        Angel

        Hey!! I can be trained!!