470,636 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

small question: can't compile manually

I have a piece of software - it compiles fine using nmake (started
from cygwin, using visual c++).

The output of
nmake explorernodequery.dll
is:
----------------------------------------------------------
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

echo Compiling, explorernodequery.obj from explorernodequery.c
Compiling, explorernodequery.obj from explorernodequery.c
cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=
1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500
-D_WIN32_IE=0x0500 -DWINV
ER=0x0500 -D_MT -D_DLL -MDd -DWIN32 -I .\include -I ecsapi\include -I
tngapi\in
clude /Foexplorernodequery.obj explorernodequery.c
explorernodequery.c
echo Compiling, mncache.obj from mncache.c
Compiling, mncache.obj from mncache.c
cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=
1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500
-D_WIN32_IE=0x0500 -DWINV
ER=0x0500 -D_MT -D_DLL -MDd -DWIN32 -I .\include -I ecsapi\include -I
tngapi\in
....
(more stuff)
---------------------------------------------------------------

However, when I try to run the same thing from the command-line
(cygwin), it complains:
explorernodequery.c
explorernodequery.c(26) : fatal error C1083: Cannot open include file:
'eCSobCli
entApi.h': No such file or directory

So, why would the following command work from nmake but not the
command line?
Besides, the .h file is there, and the include directories are
specified correctly. The whole day I can't figure this out...

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500
-D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MDd -DWIN32
-I\include -I\ecsapi\include -I\tngapi\include
/Foexplorernodequery.obj explorernodequery.c

Thank you.
Jul 22 '05 #1
2 1185
tr******@inbox.ru wrote:
I have a piece of software - it compiles fine using nmake (started
from cygwin, using visual c++).

[...]
However, when I try to run the same thing from the command-line
(cygwin), it complains:
explorernodequery.c
explorernodequery.c(26) : fatal error C1083: Cannot open include file:
'eCSobCli
entApi.h': No such file or directory

So, why would the following command work from nmake but not the
command line?
Besides, the .h file is there, and the include directories are
specified correctly. The whole day I can't figure this out...

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500
-D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MDd -DWIN32
-I\include -I\ecsapi\include -I\tngapi\include
/Foexplorernodequery.obj explorernodequery.c


'make' and compilation command lines are off-topic here. Please ask
your compiler-specific questions in that compiler's newsgroup. You
probably need one of 'microsoft.public.vc.*' forums.

Thank you.

V
Jul 22 '05 #2
> ER=0x0500 -D_MT -D_DLL -MDd -DWIN32 -I .\include -I ecsapi\include -I
tngapi\in
clude /Foexplorernodequery.obj explorernodequery.c
[snip]
-I\include -I\ecsapi\include -I\tngapi\include
/Foexplorernodequery.obj explorernodequery.c

Thank you.


Look at the -I options, they are different.

john

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by JustSomeGuy | last post: by
12 posts views Thread by mlimber | last post: by
11 posts views Thread by Random | last post: by
10 posts views Thread by jojobar | last post: by
5 posts views Thread by NvrBst | last post: by
169 posts views Thread by JohnQ | last post: by
6 posts views Thread by =?Utf-8?B?Qm9ucw==?= | last post: by
16 posts views Thread by scholz.lothar | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.