Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use ifstream and qDebug
Forum Updated to NodeBB v4.3 + New Features

Use ifstream and qDebug

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xav12358
    wrote on 22 May 2017, 15:31 last edited by
    #1

    Hello,

    I had to use ifstream and qDebug() in a QT program. I notice that in debug mode there is error generate when ue ifstream in Qt program. I saw on post that the solution to avoid that is not to use ifstream.

    I had to ue ifstream because it is used in a library I use.

    Is there a way to use ifstream and qDebug() at the same time?

    V 1 Reply Last reply 22 May 2017, 15:55
    0
    • X Xav12358
      22 May 2017, 15:31

      Hello,

      I had to use ifstream and qDebug() in a QT program. I notice that in debug mode there is error generate when ue ifstream in Qt program. I saw on post that the solution to avoid that is not to use ifstream.

      I had to ue ifstream because it is used in a library I use.

      Is there a way to use ifstream and qDebug() at the same time?

      V Offline
      V Offline
      VRonin
      wrote on 22 May 2017, 15:55 last edited by
      #2

      @Xav12358 said in Use ifstream and qDebug:

      Is there a way to use ifstream and qDebug() at the same time?

      Yep, shouldn't be a problem

      I notice that in debug mode there is error generate when ue ifstream in Qt program.

      What error?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • X Offline
        X Offline
        Xav12358
        wrote on 23 May 2017, 11:43 last edited by
        #3

        In fact I generated a library which use ifstream and cout. Then I use that library in Qt project.
        In windows, when I use that library (debug or release version) in my project in debug mode the ifstream read strange stuff. In release mode it works properly.

        V 1 Reply Last reply 25 May 2017, 07:17
        0
        • X Xav12358
          23 May 2017, 11:43

          In fact I generated a library which use ifstream and cout. Then I use that library in Qt project.
          In windows, when I use that library (debug or release version) in my project in debug mode the ifstream read strange stuff. In release mode it works properly.

          V Offline
          V Offline
          VRonin
          wrote on 25 May 2017, 07:17 last edited by
          #4

          @Xav12358 said in Use ifstream and qDebug:

          strange stuff

          error C2065: 'strange stuff' : undeclared identifier

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          2

          1/4

          22 May 2017, 15:31

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved