Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.pro extension in C++ project

Tags:

c++

c++11

I have a C++ project that contains .pro file. I can not compile it with visual studio 2010 and 2012. can you help me to select the IDE and compiler that can compile the project?

i have seen uint type in the project. uint or unsigned int? cheers Ehsan

like image 477
aeranginkaman Avatar asked Oct 08 '13 07:10

aeranginkaman


People also ask

How do I add a CPP file to a project?

Add a new source file to the project, as follows. In Solution Explorer, right-click the Source Files folder, point to Add, and then click New Item. In the Code node, click C++ File (. cpp), type a name for the file, and then click Add.

What is .pro file in Qt?

pro file is to list the source files that are involved in a project. Since qmake is used for building Qt and its associated tools, it knows Qt very well and can generate rules for invoking moc, uic, and rcc. As a result, the syntax is very concise and easy to learn.

What is the extension of C++?

Implementation files in C++ always have the file name extension " . cc ". Inline definition files always have the file name extension " .


1 Answers

Most likely this is a qt project file.

Contents should be somewhat similar to this:

######################################################################
# Automatically generated by qmake (2.01a) 
######################################################################

TEMPLATE = app
TARGET = 
DEPENDPATH += .

CONFIG += console
QT += opengl

# Input
SOURCES += main.cpp

If contents are significantly different (there are no "TEMPLATE", "SOURCES", etc), then it is something else.

To compile this project, you need qt installed and configured on your system, so you can use qmake. You can also download QtCreator, which might be easier for you to use.

You need to use qmake tool to generat visual studio solution file from this *.pro file. Qt is a "broad" topic, so if you need to learn qt, I suggest to read through its documentation.

like image 171
SigTerm Avatar answered Oct 10 '22 07:10

SigTerm