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

C++ compiler about version 4.3 and an odd error of a compilation.

I have yourself c++ compiler about version of 4.3 it installed in a
catalog:/usr/lib/gcc-snapshot in system Debian.
libc6 version 2.6-5
For compilation of file about conntent,this below
it appear following error:
katusis@localhost:~$ /usr/lib/gcc-snapshot/bin/c++ -Wall tytan.cpp
In file included from tytan.cpp:10:
/usr/include/limits.h:125:26: error: no include path in which to search for
limits.h
You say to me what it's not bad and whow do this error repair?
//tytan.cpp
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "kapt"
#define VERSION "1.0"
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Thanks in advice.
Aug 1 '07 #1
4 1744
On 2007-08-01 08:06, Miroslaw Makowiecki wrote:
I have yourself c++ compiler about version of 4.3 it installed in a
catalog:/usr/lib/gcc-snapshot in system Debian.
libc6 version 2.6-5
For compilation of file about conntent,this below
it appear following error:
katusis@localhost:~$ /usr/lib/gcc-snapshot/bin/c++ -Wall tytan.cpp
In file included from tytan.cpp:10:
/usr/include/limits.h:125:26: error: no include path in which to search for
limits.h
You say to me what it's not bad and whow do this error repair?
//tytan.cpp
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "kapt"
#define VERSION "1.0"
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
First of, you know that limits.h is not a C++ include file (it's C)? The
standard C++ includes don't have a .h at the end so it would be just
<limitsif you wanted the C++ version.

As for your problem it seems that gcc is not set correctly, try asking
in gnu.gcc.help for more help on setting up gcc.

--
Erik Wikström
Aug 1 '07 #2
On Wed, 01 Aug 2007 07:54:29 GMT, Erik Wikström
<Er***********@telia.comwrote in comp.lang.c++:
On 2007-08-01 08:06, Miroslaw Makowiecki wrote:
I have yourself c++ compiler about version of 4.3 it installed in a
catalog:/usr/lib/gcc-snapshot in system Debian.
libc6 version 2.6-5
For compilation of file about conntent,this below
it appear following error:
katusis@localhost:~$ /usr/lib/gcc-snapshot/bin/c++ -Wall tytan.cpp
In file included from tytan.cpp:10:
/usr/include/limits.h:125:26: error: no include path in which to search for
limits.h
You say to me what it's not bad and whow do this error repair?
//tytan.cpp
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "kapt"
#define VERSION "1.0"
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

First of, you know that limits.h is not a C++ include file (it's C)?
Sorry, but that is incorrect. All 18 C95 standard headers are also
standard headers in C++. Including them as one does in C, with
<header.his deprecated by the C++ standard in favor of the <cheader>
form, it is still perfectly legal to include them with the C syntax.
The
standard C++ includes don't have a .h at the end so it would be just
<limitsif you wanted the C++ version.
Again, to include a C standard header in the preferred standard C++
manner, the preferred method would be <climitsinstead of <limits.h>,
but the original form is valid C++.

Also note that some standard C and standard C++ header names are
similar, so in C++:

#include <limitsincludes a C++ only header, but:

#include <climitsincludes the C header <limits.h>

....and

#include <stringincludes a C++ only header, but:

#include <cstringincludes the C header <string.h>

The preferred method for including standard C headers in C++ is based
on <cheaderplacing the C identifiers only in the std namespace,
whereas including them via <header.hputs the identifiers in both the
global and std namespaces.

In the particular case of <limits.hor <climits>, it makes absolutely
no difference at all, because the header only defines macros, and
macros are not scoped to namespaces.
As for your problem it seems that gcc is not set correctly, try asking
in gnu.gcc.help for more help on setting up gcc.
This, of course, is excellent advice. Another place the OP could try
is news:comp.os.linux.development.apps.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Aug 1 '07 #3
On Aug 1, 6:21 pm, Jack Klein <jackkl...@spamcop.netwrote:

[...]
Also note that some standard C and standard C++ header names are
similar, so in C++:
#include <limitsincludes a C++ only header, but:
And a C++ only header may include any other C++ headers.
#include <climitsincludes the C header <limits.h>
Not in a conforming implementation. (Actually, in the specific
case of <climits>, I think it might, because the header only
defined macros, so namespace issues aren't germaine.)
...and
#include <stringincludes a C++ only header, but:
#include <cstringincludes the C header <string.h>
The preferred method for including standard C headers in C++ is based
on <cheaderplacing the C identifiers only in the std namespace,
whereas including them via <header.hputs the identifiers in both the
global and std namespaces.
That's what the standard says. In practice, conformant
implementations of the <cxxxxforms are very rare, so I stick
pretty much to the <xxxx.hforms. The next version of the
standard should clarify this some, and in particular, make
conformance more realistic, so I'll probably start changing.

Note, however, that which ever one you include, you can expect
to find the names in both std:: and ::.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Aug 2 '07 #4
On Wed, 01 Aug 2007 08:06:59 +0200, Miroslaw Makowiecki <mi*****************@gmail.comwrote:
I have yourself c++ compiler about version of 4.3 it installed in a
catalog:/usr/lib/gcc-snapshot in system Debian.
I think you should stick to a released version of GCC, if you cannot
debug these kinds of problems yourself (or know how to ask on the
correct mailing list).

Debian Linux 4.0 "Etch" includes gcc 4.1.2, which is a very decent C++
compiler.

/Jörgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org R'lyeh wgah'nagl fhtagn!
Aug 2 '07 #5

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

Similar topics

1
by: Mikko Nieminen | last post by:
Hello! Has anyone solutions for error below. I've searched possible sites and read every tech document. I've reinstalled framework(1.1) and Visual Studio (2003). -mikko- Compilation Error...
2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
1
by: Hafeez | last post by:
I am having real trouble compiling this code http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz The attachment shows errors when compiled using the current version of g++ in a...
1
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
1
by: Invalidlastname | last post by:
Hi, Our developer team recently started getting the compilation error, see below, once a while running the asp.net web application from Visual Studio 2003 (in debug mode), and we have to rebuild the...
3
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
1
by: abh1508 | last post by:
Following a release of code the following problem occurs on certain asp ..net pages. This is not a problem on other testing/demo environments. IIS seems to be creating certain files twice in the...
1
by: bhanupoornakumar | last post by:
Hi .. when i am setting a website i am getting the following error.. The compiler failed with error code -1073741819. This is the full error .. u can see below. Compilation Error ...
0
by: gmsieling | last post by:
We're getting compiler error CS0006, with increasing frequency. It says that a randomly named DLL was not found. This happens at random intervals when you try to run the application. We're using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.