472,802 Members | 1,316 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,802 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 1234
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.
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.