how to compile c++ source file in qtCreator
hi there......i installed the qtcreator in windows and i just want to know if it is possible to compile c++ source file......
for example if i create a c++ source file (from the New tab) and write a small program suppose hello world.....so how can i compile it.....
i am now learning c++ a bit so i want to compile my file can i do it using this IDE or what i have to do to compile c++ source file in this IDE........
P.S: my program is not GUI based i am talking about C++ programming the general one.......
Re: how to compile c++ source file in qtCreator
You have to hit the big green arrow button on the left panel of Creator. It will call qmake and make/nmake behind the scenes so you need that configured as well.
Re: how to compile c++ source file in qtCreator
I bet he will face another problem. I will assume that orky7 created just a new C++ file, so there is no pro file.
If this is true then just go into the directory containing your source file and run qmake -project. Then do what wysota has written.
Re: how to compile c++ source file in qtCreator
u r right with the first line @lyuts.......so u mean i go to C:\Qt\2009.01\bin\neww (neww is the folder containing my hello.cpp file) and open the windows command prompt and type in "qmake -project" and after that return back and hit the green button on the ide.......
Re: how to compile c++ source file in qtCreator
hi i just created a console application and edited the .cpp file and its running but there is no .exe file get created(one is created under debug folder which if i open says a dll file is missing) so where to find the exe of my console app..........
or cant i somehow link the gcc provided by the qtcreator ide into the ide and compile and run my file and form .exe file for the .cpp source file........
Re: how to compile c++ source file in qtCreator
You need to make sure the dynamic linker can find appropriate dll files when starting your application. You can copy appropriate dll files to the debug folder or to your system folder.
Re: how to compile c++ source file in qtCreator
every thing just sorted out thanks...............