Results 1 to 3 of 3

Thread: Compiler Error

  1. #1
    Join Date
    Jul 2010
    Posts
    72
    Thanks
    35
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Compiler Error

    Hi,

    I am unable to compile anything, since the following error always shows:

    make: g++: Command not found
    make: Leaving directory `/home/jack/Documents/TrampaQt/hfgh'
    make: *** [main.o] Error 127
    Exited with code 2.
    Error while building project hfgh
    When executing build step 'Make'

    Cheers

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Compiler Error

    On Linux you need to install yourself the C++ compiler (g++) most Linux distros come with gcc witch compiles C code. (also check that "make" is installed)

  3. The following user says thank you to Zlatomir for this useful post:

    Maluko_Da_Tola (31st July 2010)

  4. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compiler Error

    Sounds like your path isn't correct. Try either fixing your path, or, if you don't know how to do that, reboot, reinstall Qt, reboot.

    Unless of course it's Linux, in which it's expected to have G++

  5. The following user says thank you to squidge for this useful post:

    Maluko_Da_Tola (31st July 2010)

Similar Threads

  1. Plugin compiler error: undefined reference
    By FinderCheng in forum Qt Programming
    Replies: 8
    Last Post: 1st May 2010, 16:49
  2. WinMain@16 compiler error in Qt examples
    By Tvt204 in forum Installation and Deployment
    Replies: 11
    Last Post: 26th January 2010, 19:30
  3. Compiler Error Q3PtrList (VS2005 on XP and Qt4.3.3)
    By stefan1981 in forum Installation and Deployment
    Replies: 5
    Last Post: 5th September 2008, 15:18
  4. 4.1.0 qmake compiler error - Solaris
    By Novahokie in forum Installation and Deployment
    Replies: 6
    Last Post: 19th April 2007, 18:49
  5. lQtGuid4 error - Compiler setting problem
    By Kapil in forum Installation and Deployment
    Replies: 7
    Last Post: 10th February 2006, 09:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.