Hi,
I'm beginning the process of moving some projects from VS.Net 7 to
VS2005. I'm having problems getting a Custom Build Step to work.
In the dialog for the header file I want to perform the custom step on,
I copy and paste the command line:
$(QTDIR)\bin\mo c.exe "..\Messenger.h " -o ".\moc_Messenge r.cpp"
I also set description, outputs, additional dependencies
($(QTDIR)\bin\m oc.exe), and click Ok. I can open the dialog up again,
and see all the options as I set them.
However, when I do a build, it fails, with moc.exe complaining of
invalid arguments. When I check the Command Line entry in the Custom
Build Step properties, it now contains:
$(QTDIR)\bin\mo c.exe -DQT_NO_DEBUG -D_WINDOWS -DUNICODE -DWIN32
-DQT_DLL -DQT_THREAD_SUPP ORT -I"$(QTDIR)\incl ude" -I"."
-I"d:\Qt\3.3.2\m kspecs\win32-msvc.net" "..\Messenger.h " -o
".\moc_Messenge r.cpp"
Is there some option somewhere in VS2005 that is causing it to add the
defines and includes to the command line for a CSB? I never experienced
this in VS 7
Thanks, Michael
I'm beginning the process of moving some projects from VS.Net 7 to
VS2005. I'm having problems getting a Custom Build Step to work.
In the dialog for the header file I want to perform the custom step on,
I copy and paste the command line:
$(QTDIR)\bin\mo c.exe "..\Messenger.h " -o ".\moc_Messenge r.cpp"
I also set description, outputs, additional dependencies
($(QTDIR)\bin\m oc.exe), and click Ok. I can open the dialog up again,
and see all the options as I set them.
However, when I do a build, it fails, with moc.exe complaining of
invalid arguments. When I check the Command Line entry in the Custom
Build Step properties, it now contains:
$(QTDIR)\bin\mo c.exe -DQT_NO_DEBUG -D_WINDOWS -DUNICODE -DWIN32
-DQT_DLL -DQT_THREAD_SUPP ORT -I"$(QTDIR)\incl ude" -I"."
-I"d:\Qt\3.3.2\m kspecs\win32-msvc.net" "..\Messenger.h " -o
".\moc_Messenge r.cpp"
Is there some option somewhere in VS2005 that is causing it to add the
defines and includes to the command line for a CSB? I never experienced
this in VS 7
Thanks, Michael