Modify

Opened 17 years ago

Closed 17 years ago

#348 closed Bug (No Bug)

Compiler complains that $STDERR_MERGED is undefined global variable

Reported by: david@… Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

The helps for Run indicate a new standard_i/o_flag option described below:

8 ($STDERR_MERGED) = Provides the same handle for STDOUT and STDERR. Implies both $STDOUT_CHILD and $STDERR_CHILD.

Generates the following when I compile:
WARNING: $STDERR_MERGED: possibly used before declaration.
$DevConCheck = Run( "DevCon.exe help", @ScriptDir, @SW_HIDE, $STDERR_MERGED)

ERROR: $STDERR_MERGED: undeclared global variable.

$DevConCheck = Run( "DevCon.exe help", @ScriptDir, @SW_HIDE, $STDERR_MERGED)

Script.au3 - 1 error(s), 1 warning(s)

Script is below:
#Region ; Directives created by AutoIt3Wrapper_GUI
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ; Directives created by AutoIt3Wrapper_GUI

$DevConCheck = Run( "DevCon.exe help", @ScriptDir, @SW_HIDE, $STDERR_MERGED)

If $DevConCheck = 0 Then

ConsoleWriteError( "DevCon.Exe not found in path." & @CRLF )
Exit(1)

Else

ConsoleWrite( "DevCon.Exe found in path." & @CRLF )

EndIf

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by david@…

Close bug.

I did not realize one had to add #include<Constants.au3>. It was referenced in the help, but did not realize it needed to specified. I realized my mistake as soon as I tried to use the other constants as well.

my apologies.

comment:2 Changed 17 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.