Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Hello,
it seems to compile fine here with fbc 1.05 on linux-x86:
What error message do you get?
or are you referring to the issue that fbc just ignores all characters behind a
_line continuation until the end of the line? That certainly is a bit odd.Hi,
Here is the compiler log for this issue (my comment is in red)
"FreeBASIC Compiler - Version 1.05.0 (01-31-2016), built for win32 (32bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
standalone
target: win32, 486, 32bit
compiling: CODEGEN_VK3_MAIN.bas -o CODEGEN_VK3_MAIN.asm (main module)
E:\SRC\VK3\release\CODEGEN_VK3_DECLARES.inc(425) error 58: Illegal
specification, at parameter 2 (<-- this line break is in the log.
) of DebugPrint() in 'sStrIn as String, _ ''
E:\SRC\VK3\release\CODEGEN_VK3_MCOMMSINC_MODULE.inc(35) error 57: Type
mismatch, at parameter 2 of DEBUGPRINT() in 'DebugPrint "'sPort' found at
begining of line: " & sText, FUNCTION'
E:\SRC\VK3\release\CODEGEN_VK3_MDEBUGINC_MODULE.inc(41) error 1: Argument
count mismatch in ')'
E:\SRC\VK3\release\CODEGEN_VK3_MDEBUGINC_MODULE.inc(48) error 57: Type
mismatch, at parameter 1 in 'Dim as String pString = LCase( sFunc ) & Space(
31 - Len( sFunc ) ) & _ '' Calling Function'
E:\SRC\VK3\release\CODEGEN_VK3_MDMULOGINC_MODULE.inc(114) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint sString,
FUNCTION'
E:\SRC\VK3\release\CODEGEN_VK3_MDMULOGINC_MODULE.inc(127) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint "initLogFile
(DMU) " & t_files.LogDMU, FUNCTION'
E:\SRC\VK3\release\CODEGEN_VK3_MDMULOGINC_MODULE.inc(171) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint "DMU Log
File Open = BAD! " & t_files.LogDMU, FUNCTION'
E:\SRC\VK3\release\CODEGEN_VK3_MDMULOGINC_MODULE.inc(221) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint( "p " &
toStringFBerrorCodes( p ) , FUNCTION, 0 )'
E:\SRC\VK3\release\CODEGEN_VK3_MDMULOGINC_MODULE.inc(325) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint( "Error",
FUNCTION, Err )'
E:\SRC\VK3\release\CODEGEN_VK3_MGBAPINC_MODULE.inc(61) error 57: Type
mismatch, at parameter 2 (sFunc) of DEBUGPRINT() in 'DebugPrint "MUTE 2=",
FUNCTION, x'
E:\SRC\VK3\release\CODEGEN_VK3_MGBAPINC_MODULE.inc(61) error 132: Too many
errors, exiting"
Clive Richey
From: dkl [mailto:dkls@users.sf.net]
Sent: Thursday, February 04, 2016 23:23
To: [fbc:bugs]
Subject: [fbc:bugs] #809 Inline Comment Ignored By Compiler
Hello,
it seems to compile fine here with fbc 1.05 on linux-x86:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
end sub
Sub DebugPrint2( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
end sub
What error message do you get?
or are you referring to the issue that fbc just ignores all characters
behind a _ line continuation until the end of the line? That certainly is a
bit odd.
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Fri Feb 05, 2016 05:53 AM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#809FF37 => unicode characters?
FireFly 3.7
From: fxm (freebasic.net) [mailto:fx-m@users.sf.net]
Sent: Friday, February 05, 2016 05:01
To: [fbc:bugs]
Subject: [fbc:bugs] #809 Inline Comment Ignored By Compiler
FF37 => unicode characters?
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Fri Feb 05, 2016 07:23 AM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#809It would be helpful to have a code example that shows the problem.
The first error you got seems to be
This indicates a problem with the declaration of that parameter. Is it
sStrIn as String? It looks correct, unless there are#define's in the code that interfere with the identifier or keywords.Here is the entire file.
From: dkl [mailto:dkls@users.sf.net]
Sent: Monday, February 08, 2016 10:48
To: [fbc:bugs]
Subject: [fbc:bugs] #809 Inline Comment Ignored By Compiler
It would be helpful to have a code example that shows the problem.
The first error you got seems to be
Illegal specification, at parameter 2 of DebugPrint()
This indicates a problem with the declaration of that parameter. Is it
sStrIn as String? It looks correct, unless there are #define's in the code
that interfere with the identifier or keywords.
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Fri Feb 05, 2016 01:00 PM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#809Here is the entire file.
From: dkl [mailto:dkls@users.sf.net]
Sent: Monday, February 08, 2016 10:48
To: [fbc:bugs]
Subject: [fbc:bugs] #809 Inline Comment Ignored By Compiler
It would be helpful to have a code example that shows the problem.
The first error you got seems to be
Illegal specification, at parameter 2 of DebugPrint()
This indicates a problem with the declaration of that parameter. Is it
sStrIn as String? It looks correct, unless there are #define's in the code
that interfere with the identifier or keywords.
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/
http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Fri Feb 05, 2016 01:00 PM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Mon Feb 08, 2016 06:48 PM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#809After renaming it to mDebug.bas and commenting out the
Function = FF_LSet(....)line, it compiled here.I see DebugPrint() begins with
which looks ok to me. It should definitely work.
Though a possible explanation for the "illegal specification" error could be that the parameter name is
#defined as macro. (but that's just a guess on my part, without seeing the whole code it's hard to say)Does it help if you insert
#undefs like this:Hi,
I thought it was a bug but if it isn't then I just won't use double
apostrophes!
Thanks for your help.
From: dkl [mailto:dkls@users.sf.net]
Sent: Tuesday, February 09, 2016 09:51
To: [fbc:bugs]
Subject: [fbc:bugs] #809 Inline Comment Ignored By Compiler
After renaming it to mDebug.bas and commenting out the Function =
FF_LSet(....) line, it compiled here.
I see DebugPrint() begins with
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String = FUNCTION, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
which looks ok to me. It should definitely work.
Though a possible explanation for the "illegal specification" error could be
that the parameter name is #defined as macro. (but that's just a guess on my
part, without seeing the whole code it's hard to say)
Does it help if you insert #undefs like this:
[...]
undef sStrIn
undef sFunc
undef intValue
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String = FUNCTION, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
[...]
[bugs:#809] http://sourceforge.net/p/fbc/bugs/809/ Inline Comment Ignored
By Compiler
Status: open
Labels: Comment
Created: Fri Feb 05, 2016 05:53 AM UTC by Clive
Last Updated: Mon Feb 08, 2016 06:48 PM UTC
Owner: nobody
Hello,
This won't compile:
Sub DebugPrint( _
sStrIn as String, _ '' The debug string.
sFunc as String, _ '' The calling Function.
ByVal intValue as Integer = 0 _ '' The value to debug (if
any.)
)
This will:
Sub DebugPrint( _
sStrIn as String, _ ' The debug string.
sFunc as String, _ ' The calling Function.
ByVal intValue as Integer = 0 _ ' The value to debug (if
any.)
)
XP, FF37, Win32 -g iexx -w Escape Next latest version.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/fbc/bugs/809/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#809Unable to reproduce error. Tried all -lang dialects on many fbc versions.