PDA

View Full Version : Fatal error ..!!!!



joseph
13th November 2007, 09:25
Guys,

While compiling my Qt application in WINDOWS ( in DOS Prompt ) , i am getting a fatal error like this.



chemedit.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
NMAKE : fatal error U1077: 'rc' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
Vc7\bin\nmake.exe"' : return code '0x2'
Stop.



Step i did for compilation in Dos prompt ...



D: > cd Projects\
D: \Projects> qmake myproject . pro
D: \Projects> nmake clean
D: \Projects> nmake



But while compiling the same project in VC++ Editor . it's compiling properly.
THis problem is coming only when you are using nmake clean in DOS Prompt. Otherwise it's ok.

I know that you can suggest me to use Editor for compilation. But my clients situation is such a way tat he will compile( Dos prompt ) it again in his primises. So please tell me how to solve this.



thanks in advance

wysota
13th November 2007, 09:32
Do you have all the Visual Studio environment variables set properly? Run vcallvars.bat (or something like that) from Visual Studio installation directory to set the paths (or use the Visual Studio command prompt).

joseph
13th November 2007, 09:51
thanks wysota,

i am using VC++ Dos prompt then also am getting some error likes this.
But why it is compiling properly in VC++ Editor.

Could you please tell me how to trouble shoot this PATH problem...???

thanks

wysota
13th November 2007, 09:54
List all the environment variables set and check if the directory containing afxres.h is present there.

joseph
13th November 2007, 10:41
I have set the path " C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include" for "afxres.h" in the INCLUDE environment variable.

But am getting the error like this..


Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.


What may be the problem...??

marcel
13th November 2007, 10:47
is the QMAKESPEC variable set to win32-msvc.net?

joseph
13th November 2007, 11:02
QMAKESPEC is already set to "win32-msvc.net".
Even i ran "vcvars32.bat" , after tat i am getting the error like this ...



SynsupOptionsDlg.cpp(15) : fatal error C1083: Cannot open include file: 'qlistbo
x.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.




please help me.

wysota
13th November 2007, 11:35
QListBox is a Qt3 class. I thought we were talking about Qt4 here...

joseph
13th November 2007, 12:15
QListBox is a Qt3 class. I thought we were talking about Qt4 here...

i know that you are pointing the error "qlistbox.h" in SynsupOptionDlg.cpp(15).
But if am going to tat file , there is no such line. believe me..!!

wysota
13th November 2007, 14:05
I believe you. Just convince your compiler, because it complains about it being there...