Re: compile source code file
what do you mean saying "library"? You want to compile just 1 file from your project?
It is unnecessary as it uses make which compiles only changed files since last compile.
So when you press for example Ctrl+B (build project) for a first time, it will compile and link your project. But editing one file and pressing Ctrl+B again result in compiling and linking just that file. If you really want to compile just one file I think you have to do it from command line.
Re: compile source code file
I guess the question is about building a shared library. Assuming you know what qmake is, you have to create a qmake project with such settings:
Code:
TEMPLATE=lib
CONFIG+=dll
Re: compile source code file
hmmm. I've got my main function in one file and all the functions that are used by main in another file .cpp and of course the header file
Re: compile source code file
How do you do it in C++ ??
#include....
Same is with Qt...Qt is C++ based,,,
Re: compile source code file
Quote:
Originally Posted by
eva
hmmm. I've got my main function in one file and all the functions that are used by main in another file .cpp and of course the header file
You need to have a project file (with a .pro extension). Otherwise there is no way in determining what you want to do with your files.
Re: compile source code file
Quote:
Originally Posted by
wysota
You need to have a project file (with a .pro extension). Otherwise there is no way in determining what you want to do with your files.
hmmm I see thanks