Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Jochen Kmietsch

Hello Jean !

On 30-Jun-2000 Jean-Marc Lasgouttes wrote concerning Re: LyX 1.1.5 and missing ".h"
on include files:

> These are standard C++ headers, and certinly are available with g++
> 2.95.2. Do you have libstdc++ installed? Which version?

libstdc++.so.2.10.0

I am fiddeling with --with-extra-prefix flags right now.  Seems since GCC is not the
main compiler here it does not find everything it's looking for but Sun's CC won't
work at all.  Plus, GCC is installed for different architectures and OS versions.

"Argh !  Old include files found !  Yell at sysadmin (Yes/no) ?  Yes
YELLYELL
Good that this time it was not you who installed a new GCC"...

That should fix it.  I will keep you updated.

Jochen
-- 
Fred Hoyle: "There is a coherent plan in the universe, though I don't know what
it's a plan for."




Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| > I am trying to compile LyX 1.1.5 on a Solaris 2.7 system, using g++ 2.95.2
| > It seems like a whole load of include directives look like
| > #include 
| > 
| > instead of
| > 
| > #include 
| 
| The first version is correct and should be available with gcc 2.95. 
| If not, you can create your own iosfwd:
| 
| --- snip 
| // -*- C++ -*- I/O forward declaration header.
| // This file is part of the GNU ANSI C++ Library.
| 
| #ifndef __IOSFWD__
| #define __IOSFWD__
| class ios;
| class streambuf;
| class istream;
| class ostream;
| class iostream;
| class filebuf;
| class ifstream;
| class ofstream;
| class fstream;
| #endif
| --- snip 

But of course this is not standard conforming and will not work with a
more uptodate implementation. (that uses templates)

Lgb



Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Jean-Marc Lasgouttes

> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

| But he is using g++ 2.95.2, so things should work well.

Lars> gcc 2.95.2 != glibc != glibc++

glibc is not in the equation here. Are you saying that we should
support compiling on gcc 2.95.2 with an older STL version (from sun or
an older gcc installation)? It sure means a lot of work.

We'd have first know what STL version he has.

JMarc



Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Andre Poenitz

> I am trying to compile LyX 1.1.5 on a Solaris 2.7 system, using g++ 2.95.2
> It seems like a whole load of include directives look like
> #include 
> 
> instead of
> 
> #include 

The first version is correct and should be available with gcc 2.95. 
If not, you can create your own iosfwd:

--- snip 
// -*- C++ -*- I/O forward declaration header.
// This file is part of the GNU ANSI C++ Library.

#ifndef __IOSFWD__
#define __IOSFWD__
class ios;
class streambuf;
class istream;
class ostream;
class iostream;
class filebuf;
class ifstream;
class ofstream;
class fstream;
#endif
--- snip 

Andre'

-- 
It'll take a long time to eat 63.000 peanuts.
André Pönitz . [EMAIL PROTECTED]



Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
| 
| Lars> Jochen Kmietsch <[EMAIL PROTECTED]> writes: |
| Lars> Hello ! | | I am trying to compile LyX 1.1.5 on a Solaris 2.7
| Lars> system, using g++ 2.95.2 | It seems like a whole load of include
| Lars> directives look like | | #include  | | instead of | |
| Lars> #include 
| 
| Lars> So solaris has broken C++ headers...
| 
| Lars> Jean-Marc, can we solve this by using the cheaders? (add a
| Lars> iosfwd there?)
| 
| Lars> | Why is that ? Am I doing s.th. wrong ?
| 
| Lars> The solairs c++lib has antiquated headers. We might be able so
| Lars> solve it cleanly from within lyx.
| 
| But he is using g++ 2.95.2, so things should work well.

gcc 2.95.2 != glibc != glibc++

Lgb



Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Jean-Marc Lasgouttes

> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> Jochen Kmietsch <[EMAIL PROTECTED]> writes: |
Lars> Hello ! | | I am trying to compile LyX 1.1.5 on a Solaris 2.7
Lars> system, using g++ 2.95.2 | It seems like a whole load of include
Lars> directives look like | | #include  | | instead of | |
Lars> #include 

Lars> So solaris has broken C++ headers...

Lars> Jean-Marc, can we solve this by using the cheaders? (add a
Lars> iosfwd there?)

Lars> | Why is that ? Am I doing s.th. wrong ?

Lars> The solairs c++lib has antiquated headers. We might be able so
Lars> solve it cleanly from within lyx.

But he is using g++ 2.95.2, so things should work well.

JMarc



Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Lars Gullik Bjønnes

Jochen Kmietsch <[EMAIL PROTECTED]> writes:

| Hello !
| 
| I am trying to compile LyX 1.1.5 on a Solaris 2.7 system, using g++ 2.95.2
| It seems like a whole load of include directives look like
| 
| #include 
| 
| instead of
| 
| #include 

So solaris has broken C++ headers...

Jean-Marc, can we solve this by using the cheaders?
(add a iosfwd there?)

| Why is that ?  Am I doing s.th. wrong ?

The solairs c++lib has antiquated headers. We might be able so solve
it cleanly from within lyx.

Lgb




Re: LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Jean-Marc Lasgouttes

> "Jochen" == Jochen Kmietsch <[EMAIL PROTECTED]> writes:

Jochen> Hello ! I am trying to compile LyX 1.1.5 on a Solaris 2.7
Jochen> system, using g++ 2.95.2 It seems like a whole load of include
Jochen> directives look like

Jochen> #include 

Jochen> instead of

Jochen> #include 

These are standard C++ headers, and certinly are available with g++
2.95.2. Do you have libstdc++ installed? Which version?

JMarc



LyX 1.1.5 and missing ".h" on include files

2000-06-30 Thread Jochen Kmietsch

Hello !

I am trying to compile LyX 1.1.5 on a Solaris 2.7 system, using g++ 2.95.2
It seems like a whole load of include directives look like

#include 

instead of

#include 

which leads to errors like this:

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../ -I../../src/cheaders
-I/rzdist/gnu/sun5/lib/g++-include/ -I/usr/local//include -I/usr/openwin/include -g
-O2 -fno-rtti -fno-exceptions -c formula.C -o formula.o
In file included from formula.C:29:
formula.h:24: iosfwd: No such file or directory
In file included from ../../src/insets/lyxinset.h:23,
 from formula.h:26,
 from formula.C:29:
../../src/lyxfont.h:19: iosfwd: No such file or directory

Why is that ?  Am I doing s.th. wrong ?

Jochen
-- 
"Look, would it save you a lot of time if I just gave up and went mad now?"
-Douglas Adams, "The Hitchhiker's Guide to the Galaxy"