Subject: | on windows |
Date: | Mon, 22 Feb 2010 07:45:37 +0100 |
To: | bug-C-Scan [...] rt.cpan.org |
From: | "Jean-Damien Durand" <JeanDamienDurand [...] free.fr> |
C::Scan 0.74
OS : Windows
Distribution : Strawberry
Perl version : This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread
On Windows the echo command will natively consider a character to echo.
For that OS, the cmd command when piping to the compiler could look like this
847,852c847
< my $cmd;
< if ($^O =~ /win32/i) {
< $cmd = "echo #include \"$filename\"| $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |";
< } else {
< $cmd = "echo '\#include \"$filename\"' | $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |";
< }
---
Show quoted text
> my $cmd = "echo '\#include \"$filename\"' | $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |";
Thanks,
Regards, Jean-Damien.