small question: can't compile manually

T

trabajar

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.
 
V

Victor Bazarov

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
 
J

John Harrison

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top