Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] [Qt Creator] Console Application won't build C++ code

[Solved] [Qt Creator] Console Application won't build C++ code

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.2k Views
  • 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.
  • A Offline
    A Offline
    abhdevper01
    wrote on last edited by
    #1

    Hi All,

    I have just started to use QT creator and it looks just what I have been looking for as a generic tool for GUI and command based utilities for linux. I am in the midst of trying to build up an open source project.

    I have tried my first project using the tutorials and it works fine.

    I have then tried to use a class I previously developed in a console application with code blocks (find code blocks good for console but lacks the ease for GUI applications that the QT framework offers). This class has been compiled and linked in code blocks okay and all I had to do was add -pthread to other linker options.

    However in QT Creator creating a console application and then the .cpp and .h file for the class to the project and simply instancing the class and calling a member function in the main.cpp created by QT creator I get the following linking errors when building (it compiles okay):

    • crt1.o no file or directory
    • crti.o no file or directory

    As I have said the /usr/lib contains the files and it links fine from code blocks in the same linux operating system.

    Searched the internet and all they mention is about missing installs or libraries - but if it links in code blocks I can't see how that applies to QT creator and the problem I am getting.

    Any help appreciated.

    Thanks in advance

    1 Reply Last reply
    0
    • A Offline
      A Offline
      abhdevper01
      wrote on last edited by
      #2

      Hi All,

      I have continued to try and sort this out and I found a solution after some effort.

      It appears the linux used makes a significant difference, which leads me to believe the software manager in Linux Mint 12 x64 did not install QT creator correctly, however in Ubuntu it works fine.

      So in the end this is solved and is really an installation issue in a particular linux build.

      Regards.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        ok, thanks for the feedback.

        Could you edit your title of your first post here and prepend [solve] please.
        that way other forum users know the status.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0

        • Login

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