NG -- builds, runs, then gives Compile Error 0!
BlitzMax Forums/Brucey's Modules/NG -- builds, runs, then gives Compile Error 0!
| ||
| Hi Brucey, Don't know if this is specific to libCURL's examples, but after some trouble building libSSL, I completely deleted and replaced the curl/ssl mods with the very latest, and now get this on running ex_01.bmx: ![]() It actually runs the program, shows output, then gives this dialog box... (The output here is complete, quick crop in MSPaint, which doesn't scroll while selecting, output just fits!) |
| ||
| Just noticed, too -- the text output begins part-way through the Monkey-X Studio post! |
| ||
| This is really weird. I seem to get slightly different results every other run, eg. running ex_02 worked fine, ex_01 again (deleting .bmx/.exe) gives the dialog but now shows the whole page. Running another time gave missing interface errors... might have a reboot! Could you maybe just try ex_01 and see if the dialog appears? That at least seems consistent on that example... |
| ||
| Hi James, I believe that the dialog is related to verbose option in the libcurl script, 0 meaning that there were no errors. Try to run without it. -Henri |
| ||
| Oh, man, that's weird... and embarrassing if so! Will try tonight, gotta rush! |
| ||
| Yep, you were right, Henri! I'd never have guessed -- I curmudgeonly curse curl and its crude "compiler" crud! (Sorry, Brucey, ignore... and no sarky responses about already doing so!) |
| ||
| Maybe "Compile Error:" as title is already a bit misleading. Shouldn't it be "Notice:" or so? A "Notice: \n 0" more looks like as if a programmer just outputs a simple number than a more descriptive text. bye Ron |
| ||
| It is now -- but that's what the dialog box says (see image in first post). That dialog message seems to come from curl, rather than anything Brucey's done... |
| ||
| It happens only when run from MaxIDE ? maybe it reads the error stream of the console - and curl writes to it. At the end MaxIDE assumes an error ("something printed to the error channel") and displays it. bye Ron |
| ||
Most likely something to do with this in MaxIDE :
' gcc error
err=err.Replace(EOL+" "," ")
While err
p=err.find(EOL)
If p=-1 p:+err.length 'equiv. to p=err.length-1 ;-)
mess=err[..p]
err=err[p+1..]
p=0
Repeat
p=mess.Find(":",p)+1
If p=0 Exit
q=mess.Find(":",p)
If q<>-1
file=mess[..p-1]
line=Int(mess[p..q])
If line
mess=mess[q+1..]
SelectError file,column,line
Notify LocalizeString("{{output_error_compileerror}}").Replace("%1",mess)
Return
EndIf
p=q+1
EndIf
Forever
Wend
|
