Re: Trouble recompiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Citerar christopher.j.regan@xxxxxxxxxxx:

> Hello
>    We currently have code compiled for redhat 7.3 and we are trying to
> upgrade to 9.0 and recompile programs in the process. Anyway the main problem
> is during compilation we include a file called mybastring.h which is just a
> modified version of bastring.h
> with string locking. The problem comes with the includes that bastring.h
> includes. They do not seem to compile under the version of gcc that comes
> with redhat 9. There are all kinds of errors such as "ISO C++ forbids". This
> makes me think there is now a
> replacement for bastring under the current version of gcc. I have tried using
> all kinds of different compiler switches and have tried both gcc and g++.
> Nothing seems to help with the problem. Any help would be appreciated. If you
> need more info i can do
> that. Thank You for your help
> 
> 
> Christopher Regan
> Factory Applications Programmer
> (845) 902-1313
> 
> "That's why i'm easy, i'm easy like sunday morning."
> 
 
I believe the "ISO C++ forbids" errors are due to gcc trying to be more ISO-
complient, and later versions more so. For a quick solution downloading an 
older version of gcc would probably work...  Check the FAQ for info on 
installing multiple version of gcc on the same system (I think you need to use -
-prefix).

If you are developing, and just not recompiling old code file, I guess now is a 
good time to learn a little more of ISO-C++. ;-) 
(On the other hand, isn't the ISO-C++ complience thing ruining a good 
language?) 

/Paul


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux