在VS2003中忽略了项目请求 - 这是一个错误吗? [英] Project seetings being ignored in VS2003 - is this a bug?

查看:89
本文介绍了在VS2003中忽略了项目请求 - 这是一个错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在非常接近我的系绳结束。


我有一个需要一些标题的项目 - 恰好是

位于另一个文件夹(我的来源的相对路径

只是(.. \ include)。


对于我的生活,在

构建期间,我无法让VC7''grok''标题。这就是我设置其他包含者的方式(有人纠正我,如果

我'做错了什么:


1)。在解决方案查看器中选择适当的项目(实际上只有1

项目,无论如何)

2)。从菜单中选择项目 - >设置

3)。在属性页面dlg框中,我点击Resources-> General

4)。我选择''其他包含目录'并输入

''.. \ include''或''[full_patname] \ include' - 两个人都没有工作。


当我尝试构建时,我仍然收到''找不到文件''错误:


c:\ devtools \pgdev \libpq ++ \pgconnection .h(30):致命错误C1083:不能

打开包含文件:''libpq-fe.h'':没有这样的文件或目录


WTF?


顺便说一句,我已经检查过,文件确实存在,所以这不是问题。

解决方案

位字节写道:

我现在非常接近我的系绳结束。

我有一个项目需要一些标题fies - 碰巧位于另一个文件夹中(我的来源的相对路径是简单的(.. \ include)。

对于我的生活,我不能让VC7变成''grok' 。一
构建过程中的头我这是怎么设置的附加includers(有人纠正我
如果I''m做错事):

1)。在解决方案查看器中选择适当的项目(实际上只有1
项目在解决方案中)
2)。从菜单中选择项目 - >设置
3)。在属性页面dlg框中,我点击了Resources-> General




这是错误的地方 - 你正在为
定义额外的包含
资源编译器。你需要在Project-> Settings,C ++ - >

General - >中设置它们。附加包含


-cd


2006年4月13日星期四16:26:17 +0100,位字节< fl **@flop.com>写道:

我现在非常接近我的系绳结束。

我有一个项目,需要一些标题fies - 恰好是
位于另一个文件夹(我的来源的相对路径是简单的(.. \ include)。

对于我的生活,我不能在
构建过程中让VC7''grok''标题。这就是我设置其他包含者的方式(有人纠正我,如果我做错了):

1)。在解决方案查看器中选择适当的项目(实际上只有1
项目在解决方案中)
2)。从菜单中选择项目 - >设置
3)。在属性页面dlg框中,我点击Resources-> General
4)。我选择''附加包含目录'并输入
''.. \ include''或''[full_patname] \ include' - 两个人都没有工作。

当我尝试构建时,我仍然得到''找不到文件''错误:

c:\ devtools \pgdev \libpq ++ \pgconnection.h(30):致命错误C1083:不能
打开包含文件:''libpq-fe.h'':没有这样的文件或目录

WTF?

顺便说一句,我已经检查了文件确实存在,所以这不是问题。




资源选项卡用于资源编译器,而不是C ++编译器。尝试

附加包含目录在C / C ++ General选项卡下。


-

Doug Harrison

Visual C ++ MVP





Carl Daniel [VC ++ MVP]写道:

Bit byte写道:

我现在非常接近我的系绳结束。

我有一个需要一些标题的项目 - 恰好位于另一个文件夹中(我的消息来源的相对路径很简单(.. \包括)。

对于我的生活,我不能让VC7变成''grok''在
构建过程中的标题。这就是我设置其他包含者的方法(有人纠正我
如果我做错了):

1)。在解决方案查看器中选择适当的项目(实际上只有1
项目在解决方案中)
2)。从菜单中选择项目 - >设置
3)。在属性页面dlg框中,我单击Resources-> General



这是错误的地方 - 您正在为
资源编译器定义其他包含。您需要在Project-> Settings,C ++ - >
General - >中设置它们。其他包括

-cd




谢谢Carl。


你看到这个我非常喜欢微软软件。很可靠

可靠 - 与g ++ / make等相比(是的)。


我的观点是,在之前的项目中,当我如此幸运的是

''''''''''''''''''''''''''''''''''''''''''''建议

(项目 - >设置,C ++ - >一般 - >附加包含)可用,

,有时不是。我写这篇文章的时候已经写了一段时间了。或许是b $ b年,到底是怎么回事。人们高兴地忽略了我的帖子,或者尝试了b $ b来说服我不会发生这种情况。我立刻放弃了MSVC,

并没有使用它。不幸的是,我必须将它用于这个

项目 - 并且嘿presto,同样的问题再次出现。


顺便说一下这里有一些额外的信息(如果确实有帮助):


MSDEV ver:7.1.3088

..Net Framework:1.1.4322

Project类型:DLL


Carl,您建议的菜单不可用。请指教。


I am pretty close to the end of my tether at the moment.

I have a project which requires some header fies - which happen to be
located in another folder (the relative path from where my sources are
is simply (..\include).

For the life of me, I can''t get VC7 to ''grok'' the headers during a
build. This is how I set the additional includers (someone correct me if
I''m doing something wrong):

1). Select appropriate project in solution viewer (actually only 1
project in soln anyways)
2). Select Project->Settings from menu
3). In the property pages dlg box, I click on Resources->General
4). I select ''Additional Include Directories'' and type in either
''..\include'' or ''[full_patname]\include'' - BOTH DONT WORK.

I still get ''file not found'' error when I attempt to build:

c:\devtools\pgdev\libpq++\pgconnection.h(30): fatal error C1083: Cannot
open include file: ''libpq-fe.h'': No such file or directory

WTF?

By the way, I have checked and the files do exist, so thats not the problem.

解决方案

Bit byte wrote:

I am pretty close to the end of my tether at the moment.

I have a project which requires some header fies - which happen to be
located in another folder (the relative path from where my sources are
is simply (..\include).

For the life of me, I can''t get VC7 to ''grok'' the headers during a
build. This is how I set the additional includers (someone correct me
if I''m doing something wrong):

1). Select appropriate project in solution viewer (actually only 1
project in soln anyways)
2). Select Project->Settings from menu
3). In the property pages dlg box, I click on Resources->General



This is the wrong place - you''re defining additional includes for the
resource compiler. You need to set them in Project->Settings, C++ ->
General -> Additional Include

-cd


On Thu, 13 Apr 2006 16:26:17 +0100, Bit byte <fl**@flop.com> wrote:

I am pretty close to the end of my tether at the moment.

I have a project which requires some header fies - which happen to be
located in another folder (the relative path from where my sources are
is simply (..\include).

For the life of me, I can''t get VC7 to ''grok'' the headers during a
build. This is how I set the additional includers (someone correct me if
I''m doing something wrong):

1). Select appropriate project in solution viewer (actually only 1
project in soln anyways)
2). Select Project->Settings from menu
3). In the property pages dlg box, I click on Resources->General
4). I select ''Additional Include Directories'' and type in either
''..\include'' or ''[full_patname]\include'' - BOTH DONT WORK.

I still get ''file not found'' error when I attempt to build:

c:\devtools\pgdev\libpq++\pgconnection.h(30): fatal error C1083: Cannot
open include file: ''libpq-fe.h'': No such file or directory

WTF?

By the way, I have checked and the files do exist, so thats not the problem.



The Resources tab is for the resource compiler, not the C++ compiler. Try
the "Additional Include Directories" under the C/C++ General tab.

--
Doug Harrison
Visual C++ MVP




Carl Daniel [VC++ MVP] wrote:

Bit byte wrote:

I am pretty close to the end of my tether at the moment.

I have a project which requires some header fies - which happen to be
located in another folder (the relative path from where my sources are
is simply (..\include).

For the life of me, I can''t get VC7 to ''grok'' the headers during a
build. This is how I set the additional includers (someone correct me
if I''m doing something wrong):

1). Select appropriate project in solution viewer (actually only 1
project in soln anyways)
2). Select Project->Settings from menu
3). In the property pages dlg box, I click on Resources->General


This is the wrong place - you''re defining additional includes for the
resource compiler. You need to set them in Project->Settings, C++ ->
General -> Additional Include

-cd



Thanks Carl.

You see this what I love so much about Microsoft software. It is SO VERY
reliable - compared to g++/make etc (Yeah RIGHT).

My point is, in previous projects, when I have been so fortunate as to
''have'' to use MSCV, I have used exactly the setting syou described.
However, back then, I noticed that sometimes, the option you suggested
(Project->Settings, C++ -> General -> Additional Include) is available,
and sometimes it is not. I wrote to ask people in this ng some time last
year, what on earthwas going on. People happily ignored my post or tried
to convince me that that cannot be happening. I promptly dropped MSVC,
and did not use it gaain. Unfortunately, I have to use it for this
project - and hey presto, the same problem crops up again.

By the way here is some extra info (if that does help):

MSDEV ver: 7.1.3088
..Net Framework: 1.1.4322
Project type: DLL

Carl, the menu you suggested, is not available. Please advice.


这篇关于在VS2003中忽略了项目请求 - 这是一个错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆