473,324 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1246
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: JustSomeGuy | last post by:
I have a class that looks something like this (Don't try to compile it, I haven't tested this) class KVP { string key; string value; list<KVP> sublist; };
12
by: mlimber | last post by:
This is a repost (with slight modifications) from comp.lang.c++.moderated in an effort to get some response. I am using Loki's Factory as presented in _Modern C++ Design_ for message passing in...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
5
by: NvrBst | last post by:
I'm wondering if this is possible... Basically say I have a lot of .cs files but only 1 of them changes. Is there a way (with the csc.exe, or VS.NET 2005, or another C# Compiler), that I can...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
0
by: nventure | last post by:
Hello, Using VS 2005 with SP1, managed C++. After installing security update for MS.NET framework 2.0 KB928365 my project fails to compile with error "C2653: 'BLib' : is not a class or...
6
by: =?Utf-8?B?Qm9ucw==?= | last post by:
I'm not exactly sure how to state this problem. One of my students emailed me that when she tries to open a web page through IE it opens small and she has to hit the maximize button to make it the...
16
by: scholz.lothar | last post by:
I want to add some extension features to my program and this would require that i bundle a small c compiler with my program. On Unix it seems that tiny-c can do this, but i don't know about windows.
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.