in reply to Re^3: problem with par as other user
in thread problem with par as other user

why you need to compile start.c, in the first place?

Regarding compiling perl shipped with activestate with mingv, or free MS compiler, or else - please seek monastery, I remember many articles here.

Regarding

C:/perl-5.8.8/perl.h:37:23: config.h: No such file or directory
You do not have to create config.h with configure. Config.h shipped with Perl and is inside its directory ./lib/CORE/*.h

To get rid of terminal window - thats easy. Also, it should not show in the package that I've sent. On which step do you see them?

Did you succeeded running perl-cd-blablabla, BTW??

BR,
Vadim.

Replies are listed 'Best First'.
Re^5: problem with par as other user
by Ace128 (Hermit) on Jun 29, 2006 at 19:04 UTC
    Well well, interesting.. didn't know about those header files with the standard installable!

    Running like "start tktest.pl" with this code:
    #!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new; #centers window CenterWindow($mw, 300, 200); MainLoop; sub CenterWindow { my($window, $width, $height) = @_; #$window->idletasks; $width = $window->reqwidth unless $width; $height = $window->reqheight unless $height; my $x = int(($window->screenwidth / 2) - ($width / 2)); my $y = int(($window->screenheight / 2) - ($height / 2)); $window->geometry("=${width}x${height}+${x}+${y}"); }
    displays the terminal aswell. I just unzipped your package and ran this. Else I love this solution! :)

    And now I compiled but linking seems to give me:
    ...Temp/ccARbaaa.o(.text+0x44):start.c: undefined reference to `_imp__ +win32_malloc' ...Temp/ccARbaaa.o(.text+0x35a):start.c: undefined reference to `_imp_ +_win32_malloc' ...Temp/ccARbaaa.o(.text+0x435):start.c: undefined reference to `_imp_ +_win32_malloc' ...Temp/ccARbaaa.o(.text+0x4bf):start.c: undefined reference to `_imp_ +_RunPerl' ...Temp/ccARbaaa.o(.text+0x4d5):start.c: undefined reference to `imp(w +char_t, int, int, int, int, int, int, int, int, int, int, int, int, i +nt, int, int, int, int, int, int, int, int, int, int, int, int, int, +int, int, int, int, int, int, int, float, long double,...)(...)' collect2: ld returned 1 exit status Execution terminated
    Ideas on this? :)

    / Ace
      linker errors because you do not show perl58.lib file to linker?
        Wierd. Should work. All needed should be in that dir...C:\Perl\lib\CORE... I forgott to add the link to that lib for the linker, but this _should_ be working!

        gcc.exe "C:\test\start.c" -o "C:\test\start.exe" -I"C:\Dev-Cpp\include" -I"C:\Perl\lib\CORE" -L"C:\Perl\lib\CORE" -L"C:\Dev-Cpp\lib"

        Notive the -L"C:\Perl\lib\CORE" part. Also, the perl58.lib is there. Aswell as PerlEz.lib.
        Still no go though...

        Ace
      on windows applications w/o console window could be:
      • for perl scripts, started with wperl (instead of perl)
      • for any "console"-based application to make it w/o console window you must once invoke the command
        editbin blablabla.exe /subsystem:windows

      Returning to your previous question, no, you do not required to build perl in order to build start.exe, and you can avoid building perl at all :):)

      ps English sorrey mine :)

        editbin?
        Err, Windows got this start.com (or is it .exe?), and apparently I've been using that instead of your start.exe! Explains the terminal window. I renamed that to s.exe and then I got this message box about trying s.pl on 4 different locations (just as you expect looking in the start.c code...) However, isnt it supposed to run the thing given as argument?

        "s.exe tktests.pl" still says the same about not finding s.pl!

        I'm a little bit confused now...

        Update: Ofcource! I renamed this s.exe to tktests.exe. However, runing it didn't do anything. As nothing seems to be happening! :/ Hmm...