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
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.
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.
Implementation files in C++ always have the file name extension " . cc ". Inline definition files always have the file name extension " .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With