octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63437] Null pointer dereference in file-edito


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #63437] Null pointer dereference in file-editor-tab.cc
Date: Mon, 5 Dec 2022 10:47:17 -0500 (EST)

Follow-up Comment #31, bug #63437 (project octave):

RE: Comment #29, http://hg.savannah.gnu.org/hgweb/octave/rev/e518e1f7e944
should fix it.

I don't know what the problem is with the other error shown in comment #30. 
Do you have the complete command used for linking the octave-svgconvert
executable?  The following is just a guess, but from digging around a bit,
octave-svgconvert.cc has this code:


      // Read from stdin
      if (! file.open (stdin, QIODevice::ReadOnly | QIODevice::Text))
        {


and the docs for QFile::open (https://doc.qt.io/qt-5/qfile.html#open-2) say:

Note for the Windows Platform

[...]

You need to enable support for console applications in order to use the stdin,
stdout and stderr streams at the console. To do this, add the following
declaration to your application's project file:


CONFIG += console


and it appears that for GCC, that CMake config option will set the linker flag
"-Wl,-subsystem,console".  For MSVC, it is "/SUBSYSTEM:CONSOLE"



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63437>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]