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.