View Full Version : .pro file help please

7th October 2006, 15:00

I have a pro file (written by someone else) where the obj, ui and moc directories are defined as

MOC_DIR = .moc
UI_DIR = .ui

When I import the pro file in MSVC and build the project, in the .moc folder I am getting both somename.moc files and moc_somename.cpp files.

I am also getting the following error:

unresolved external symbol _WinMainCRTStartup and I cannot run the app.

If I have the obj files and the exe file in the same folder then the application runs. But once I make changes some change, mocing fails and I cannot rebuild.

I think there is some parameter in the pro file that is giving this trouble.

Any ideas?

Thanks a lot

7th October 2006, 20:16
Which exact versions and editions of Qt, (VS integration?) and MSVC are you using? I tested with some minimal dummy project and such moc/obj/ui dirs work fine for me in MSVC 2005 with Qt 4.2.0 Commercial and VS integration 1.2.0.