CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14
  1. #1
    Join Date
    May 2009
    Posts
    3

    QT Creator Help (begginer)

    Hey, I am beggining to learn to program in C++ (I already know some Visual Basic .NET). I don't want to program C++ in Visual Studio (Visual C++) because I'm going to stop using Windows (Im going to stay with linux, and later on with Mac).

    I decided to use QT Creator as it looks a quite nice IDE.

    I have already installed QT Creator (in windows) and its respectives libraries.

    I was reading a tutorial in www.cplusplus.com and I was doing a Hello World in QT.

    but it gives an error in the first code line I enter! :s

    #include <iostream>

    it says: No such file or directory.

    The same happens with other #includes.

    Can someone please help me. Thnx

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: QT Creator Help (begginer)

    Using an out-of-date compiler?
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: QT Creator Help (begginer)

    What version of QT Creator you using ?
    Thanks for your help.

  4. #4
    Join Date
    Mar 2007
    Posts
    155

    Re: QT Creator Help (begginer)

    It doesn't mean you can't build an application with visual studio for non windows. Before qt creator everyone were using visual studio. VC++ is a C++ compiler.
    Still, many are using using Visual studio for qt development.
    Qt creator uses gcc compiler.
    One happy and welcome news is, current qt version is also available under LGPL which makes me turn again into Qt.

    Did you download and install Qt SDK ? or only Qt Creator ?

  5. #5
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: QT Creator Help (begginer)

    I install both of them.
    Thanks for your help.

  6. #6
    Join Date
    May 2009
    Posts
    3

    Re: QT Creator Help (begginer)

    I installed QT SDK and the windows libraries availble in the website. I dont want to use VC++ not because im going to program non windows apps, its because im going to program in other operating systems (linux and mac osx), and as far as i am concerned VC++ doesnt run in those OS's .

    Thanx for the help, but this still doesnt work :s

  7. #7
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    Re: QT Creator Help (begginer)

    Quote Originally Posted by Katukados
    I installed QT SDK and the windows libraries availble in the website. I dont want to use VC++ not because im going to program non windows apps, its because im going to program in other operating systems (linux and mac osx), and as far as i am concerned VC++ doesnt run in those OS's .
    Qt is a cross platform framework, so as long as you do not rely on Windows specific components, I would expect that the programs you write would be relatively easy to port to other platforms for which a Microsoft compiler is not available. As such, this objection to using Visual Studio and MSVC is not based on sound reasoning.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  8. #8
    Join Date
    May 2009
    Posts
    3

    Re: QT Creator Help (begginer)

    My QT still doesnt recognize the #includes. I have tried in 2 different PCs, and have unistalled and installed again, but with no success at all.

    What should I do?

  9. #9
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588

    Re: QT Creator Help (begginer)

    Weird, it works fine after install here. Have a look at the output window and paste what you see there into this thread.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  10. #10
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: QT Creator Help (begginer)

    Mine one is working fine,Try to reinstall.
    Thanks for your help.

  11. #11
    Join Date
    May 2009
    Posts
    5

    Re: QT Creator Help (begginer)

    Quote Originally Posted by Katukados View Post
    My QT still doesnt recognize the #includes. I have tried in 2 different PCs, and have unistalled and installed again, but with no success at all.

    What should I do?
    Try using a different IDE, the Bloodshed Dev-C++ is the IDE I use, it's free for download on http://www.bloodshed.com site.

  12. #12
    Join Date
    May 2009
    Posts
    1

    Re: QT Creator Help (begginer)

    Hi there:

    If you are using window, you need to add an enviroment path variable to make it work

    For example if you installed the SDK with Mingw

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Qt\2009.02\mingw\bin;

    Notice the path: C:\Qt\2009.02\mingw\bin;

    Or if you are using Qt creator with mingw, the path will probably in c:\mingw\bin\

    Cheers

    Louis

  13. #13
    Join Date
    Jun 2009
    Posts
    1

    Re: QT Creator Help (begginer)

    thank you.

  14. #14
    Join Date
    May 2009
    Posts
    2,413

    Re: QT Creator Help (begginer)

    Quote Originally Posted by Katukados View Post
    Can someone please help me. Thnx
    There's a dedicated Qt forum here,

    http://www.qtcentre.org/forum/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured