Q_DECL_EXPORT int main(int argc, char **argv)
What does this Q_DECL_EXPORT before int main(...) means?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Excerpt from QT docs:
I haven’t check the QT code, but most likely this macro will do following:
__declspec(dllimport)and__declspec(dllexport)tells the linker to import and export (respectively) a symbol from or to a DLL. This is Windows specific.In your particular case this macro probably could be removed, since
main()most likely is not part of a library.