473,322 Members | 1,431 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,322 software developers and data experts.

Project seetings being ignored in VS2003 - is this a bug?

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.

Apr 13 '06 #1
14 1534
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
Apr 13 '06 #2
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
Apr 13 '06 #3


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.

Apr 13 '06 #4
Hi Bit byte,

"Bit byte" <fl**@flop.com> wrote in message
news:ca********************@bt.com...


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.


I have the same versoin numbers, and I can see this setting for my projects.
How have you created your project?
Apr 13 '06 #5


Marcus Heege wrote:
Hi Bit byte,

"Bit byte" <fl**@flop.com> wrote in message
news:ca********************@bt.com...

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.

I have the same versoin numbers, and I can see this setting for my projects.
How have you created your project?


Marcus:

File -> new Project
Visual C++ Projects-> Win32->Win32 Project
Application Settings:
App Type: DLL
Additional options: Empty project

Only other point to note is that my cpp files have extension *.cc (can't
see why this would be a prob though - since I changed the filter
property for the 'Source Files' folder.

Apr 13 '06 #6
>> I have the same versoin numbers, and I can see this setting for my
projects. How have you created your project?


Marcus:

File -> new Project
Visual C++ Projects-> Win32->Win32 Project
Application Settings:
App Type: DLL
Additional options: Empty project

Only other point to note is that my cpp files have extension *.cc (can't
see why this would be a prob though - since I changed the filter property
for the 'Source Files' folder.


Even if I use the .cc extension, I can see that option. If you look at the
configuration properties for a C++ file and check the setting for General ->
Tool, do you see the setting "C/C++ compiler Tool"?
Apr 13 '06 #7


Marcus Heege wrote:
I have the same versoin numbers, and I can see this setting for my
projects. How have you created your project?


Marcus:

File -> new Project
Visual C++ Projects-> Win32->Win32 Project
Application Settings:
App Type: DLL
Additional options: Empty project

Only other point to note is that my cpp files have extension *.cc (can't
see why this would be a prob though - since I changed the filter property
for the 'Source Files' folder.

Even if I use the .cc extension, I can see that option. If you look at the
configuration properties for a C++ file and check the setting for General ->
Tool, do you see the setting "C/C++ compiler Tool"?

No. This is *PRECISELY* my point. The "C/C++ ..." menu under general is
no longer available. What I did not (bizzarely though) is that if I do
not choose the 'Empty Project' option, I have this menu option. However,
if I remove the stdafx.h and other crap it generates and replace them
with my own source files, I have this problem.

I know I shouldn't antagonize you because you're probably going to be
the one who helps me - but I'm really having to hold back the torrent of
abuse I want to direct to this mickey mouse Windoze environment and its
assortment of 'developer tools' - there I (almost) said it ... Arghh !

Apr 13 '06 #8
"Bit byte" <fl**@flop.com> wrote in message
news:gc********************@bt.com...
No. This is *PRECISELY* my point. The "C/C++ ..." menu under general is no
longer available. What I did not (bizzarely though) is that if I do not
choose the 'Empty Project' option, I have this menu option. However, if I
remove the stdafx.h and other crap it generates and replace them with my
own source files, I have this problem.


IIRC, the C++ options won't appear in the project properties unless there's
at least one file that's recognized as being a C++ file, and I'm pretty
certain that .cc isn't in that list for VC7. With VC8 (2005) there's an
option to add new file extensions to the list recognized as C++ (or any
other language). I don't recall if that option is available for VC7 (or
VC7.1), and I don't have VC7 installed anymore to check myself, but I think
that's where your problem lies. A simple way to confirm (perhaps you've
already done this?): if you rename your files to .cpp (or just rename a
single file), does the option then show up in project properties?

-cd
Apr 13 '06 #9
>> Even if I use the .cc extension, I can see that option. If you look at
the configuration properties for a C++ file and check the setting for
General -> Tool, do you see the setting "C/C++ compiler Tool"? No. This is *PRECISELY* my point. The "C/C++ ..." menu under general is no
longer available. What I did not (bizzarely though) is that if I do not
choose the 'Empty Project' option, I have this menu option. However, if I
remove the stdafx.h and other crap it generates and replace them with my
own source files, I have this problem.


The subtrees of configuration properties depend on the tool that is
selected.
If you click on "General", you should at least see the properties "Exclude
From Build" and "Tool". If you set the property "Tool" to "C++ Compiler
Tool" and click "Apply", the C/C++ subtree should appear.

Q1: Do you see the "General" subtree and the "Exclude From Build" and
"Tool"?
Q2: What is the setting for your "Tool" property?
I know I shouldn't antagonize you because you're probably going to be the
one who helps me - but I'm really having to hold back the torrent of abuse
I want to direct to this mickey mouse Windoze environment and its
assortment of 'developer tools' - there I (almost) said it ... Arghh !


No worries :-) I would bet that most complains about Microsoft are written
in Word :-)
Apr 13 '06 #10
>> Even if I use the .cc extension, I can see that option. If you look at
the configuration properties for a C++ file and check the setting for
General -> Tool, do you see the setting "C/C++ compiler Tool"? No. This is *PRECISELY* my point. The "C/C++ ..." menu under general is no
longer available. What I did not (bizzarely though) is that if I do not
choose the 'Empty Project' option, I have this menu option. However, if I
remove the stdafx.h and other crap it generates and replace them with my
own source files, I have this problem.


if I rename all cpp files to cc files, the C++ tab disappears from the
project properties sheet.
if I check the properties of the cc file itself, it still has the
possibility to select the compiler tool (C or C++)
i think cc is not recognized as a c/cpp extension.
I know I shouldn't antagonize you because you're probably going to be the
one who helps me - but I'm really having to hold back the torrent of abuse
I want to direct to this mickey mouse Windoze environment and its
assortment of 'developer tools' - there I (almost) said it ... Arghh !


I have done large projects on linux with gcc/make as well.
It has its own share of quirks :)

I suggest trying Carl's suggestion of renaming the files to cpp, and then
under configuration properties->C/C++ ->general add ..\include to
'additional include directories'.
That should solve the problem i think.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Apr 13 '06 #11


Carl Daniel [VC++ MVP] wrote:
"Bit byte" <fl**@flop.com> wrote in message
news:gc********************@bt.com...
No. This is *PRECISELY* my point. The "C/C++ ..." menu under general is no
longer available. What I did not (bizzarely though) is that if I do not
choose the 'Empty Project' option, I have this menu option. However, if I
remove the stdafx.h and other crap it generates and replace them with my
own source files, I have this problem.

IIRC, the C++ options won't appear in the project properties unless there's
at least one file that's recognized as being a C++ file, and I'm pretty
certain that .cc isn't in that list for VC7. With VC8 (2005) there's an
option to add new file extensions to the list recognized as C++ (or any
other language). I don't recall if that option is available for VC7 (or
VC7.1), and I don't have VC7 installed anymore to check myself, but I think
that's where your problem lies. A simple way to confirm (perhaps you've
already done this?): if you rename your files to .cpp (or just rename a
single file), does the option then show up in project properties?

-cd


And the prize goes to .... Carl (incidentally, my name sake). Thanks
Carl, It was the .cc extension that screwed things up. I renamed the
files and tested it after a few flag settings (this is a cross platform
lib I 'm building), I managed to create the dll - Phew, Now to test the
darn thing ... :-)

Apr 13 '06 #12
Carl Daniel [VC++ MVP] wrote:
IIRC, the C++ options won't appear in the project properties unless there's
at least one file that's recognized as being a C++ file, and I'm pretty
certain that .cc isn't in that list for VC7. With VC8 (2005) there's an
option to add new file extensions to the list recognized as C++ (or any
other language). I don't recall if that option is available for VC7 (or


isn't it in Tools > Options > Projects > VC++ Build ?
B.
Apr 15 '06 #13
Hi Bronek,
IIRC, the C++ options won't appear in the project properties unless
there's at least one file that's recognized as being a C++ file, and
I'm pretty certain that .cc isn't in that list for VC7. With VC8
(2005) there's an option to add new file extensions to the list
recognized as C++ (or any other language). I don't recall if that
option is available for VC7 (or

isn't it in Tools > Options > Projects > VC++ Build ?


Yep, it's there in my VC7.1 install, and the default includes *.cc, so it
probably doesn't affect what the project system thinks is C++...

--
Best regards,
Kim Gräsman
Apr 18 '06 #14
Kim Gräsman wrote:
Hi Bronek,
IIRC, the C++ options won't appear in the project properties unless
there's at least one file that's recognized as being a C++ file, and
I'm pretty certain that .cc isn't in that list for VC7. With VC8
(2005) there's an option to add new file extensions to the list
recognized as C++ (or any other language). I don't recall if that
option is available for VC7 (or

isn't it in Tools > Options > Projects > VC++ Build ?


Yep, it's there in my VC7.1 install, and the default includes *.cc,
so it probably doesn't affect what the project system thinks is C++...


That sounds familiar - it's there, but it only partially works. Something
along the lines of enabling C++ syntax highlighting, but not cluing the
project system in that .cc is a C++ file. IIRC, there's a registry entry
that can be hacked to get new file extensions to work in 7.1.

-cd
Apr 18 '06 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jody Gelowitz | last post by:
Is this possible? I have compiled an assembly in VS2005 and am trying to add a reference to that assembly from my VS2003 project. The error that I am getting is: A reference to '{path to vs2005...
1
by: news.microsoft.com | last post by:
Hi NG, I want to start my vs2003-project in the solutionfolder of the project and not in /bin/debug because there are external files i wand to load. If i goto project-prefenences-Debug-"Working...
3
by: -DG- | last post by:
In C++, there is a compelling reason to recreate projects for the VS2005 compiler rather than simply copy and recompile older code (reason being C++/CLI syntax). I'm wondering if there is any...
2
by: genc_ymeri | last post by:
Hi, We are a team of 4 using win2003 server (sp1) in our dev machines and VS2003 for our .Net web app. We did make a copy of our project (located to one "hardwarely old" PC ) to our machines. All...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
6
by: HK | last post by:
I can't believe that I've bought a couple books on ASP 2.0 and nothing says how to migrate a current project. I searched google and find all kinds of intense junk about compatibility, etc. but...
1
by: Bob | last post by:
I had developped a class in Vs2003 Vb.net that would give me localized project ressources (not form ressources, these were in the individual forms). I had two files MyProjectResources.resx and...
1
by: sureshhalade | last post by:
I want to migrate VS2003 Windows/Class library/console project to VS2005 Windows/Class library/console project. And the DLL out of VS2005 project should work as previously. Note: My main project...
4
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a vb.net web project that was created in vs2003 and uses crystal reports. I no longer have vs2003 but now have vs2005. I was able to use the wizard and the project builds but when I view...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: 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: 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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.