473,396 Members | 1,913 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.

cannot compile same code on RHL 7.2 and 9.0

When I make my program on RedHat 9.0 everything goes fine, but when I try to
make on Red Hat 7.2 I get following errors:
logic2_msgcln.c:178: warning: initialization makes integer from pointer
without a cast
logic2_msgcln.c:178: initializer element is not constant
logic2_msgcln.c:178: warning: data definition has no type or storage class
logic2_msgcln.c:185: parse error before `void'
logic2_msgcln.c:225: parse error before `('
logic2_msgcln.c:225: warning: type defaults to `int' in declaration of
`__result'
logic2_msgcln.c:225: warning: data definition has no type or storage class
logic2_msgcln.c:225: parse error before `}'
logic2_msgcln.c:225: conflicting declarations of `__result'
logic2_msgcln.c:225: `__result' previously declared here
logic2_msgcln.c:225: `l' undeclared here (not in a function)
logic2_msgcln.c:225: `__s2' undeclared here (not in a function)
logic2_msgcln.c:225: parse error before `if'
logic2_msgcln.c:225: warning: type defaults to `int' in declaration of
`__result'
logic2_msgcln.c:225: conflicting declarations of `__result'
logic2_msgcln.c:225: `__result' previously defined here
logic2_msgcln.c:225: warning: data definition has no type or storage class
logic2_msgcln.c:225: parse error before `}'
logic2_msgcln.c:225: warning: type defaults to `int' in declaration of
`__result'
logic2_msgcln.c:225: warning: data definition has no type or storage class
logic2_msgcln.c:225: parse error before `}'
logic2_msgcln.c:225: redefinition of `__result'
logic2_msgcln.c:225: `__result' previously defined here
logic2_msgcln.c:225: `__s1' undeclared here (not in a function)
logic2_msgcln.c:225: warning: passing arg 1 of `l_object_get_type' makes
pointer from integer without a cast
logic2_msgcln.c:225: parse error before `if'
logic2_msgcln.c:225: warning: type defaults to `int' in declaration of
`__result'
logic2_msgcln.c:225: conflicting declarations of `__result'
logic2_msgcln.c:225: `__result' previously defined here
logic2_msgcln.c:225: warning: data definition has no type or storage class
logic2_msgcln.c:225: parse error before `}'

The thing is that I don't have `__result' in my code nor `__s1' etc.
This is what I have on RedHat 9.0:
compat-gcc-7.3-2.96.118
gcc-g77-3.2.2-5
libgcc-3.2.2-5
compat-gcc-c++-7.3-2.96.118
gcc-gnat-3.2.2-5
gcc-3.2.2-5
gcc-c++-3.2.2-5
gcc-java-3.2.2-5
glib-1.2.10-10
glibc-2.3.2-11.9
glib2-devel-2.2.1-1
glibc-kernheaders-2.4-8.10
glib-devel-1.2.10-10
glibc-common-2.3.2-11.9
glib2-2.2.1-1
glibc-devel-2.3.2-11.9
... and on Red Hat 7.2 :
gcc-2.96-112.7.2
gcc-g77-2.96-112.7.2
gcc-c++-2.96-112.7.2
glib10-1.0.6-10
glib-devel-1.2.10-5
glibc-devel-2.2.4-32
glib-1.2.10-5
compat-glibc-6.2-2.1.3.2
glib2-2.0.6-2
glib2-devel-2.0.6-2
glibc-common-2.2.4-32
glibc-2.2.4-32
Installing newer version of gcc is excluded. Any suggestions ?
Nov 13 '05 #1
1 2017
"Slavisa" <ds*******@hotmail.com> wrote:
# When I make my program on RedHat 9.0 everything goes fine, but when I try to
# make on Red Hat 7.2 I get following errors:

Do you have a header file that ends in something like
#endif
without a new line after the #endif or some other final preprocessor command?

--
Derk Gwen http://derkgwen.250free.com/html/index.html
Who's leading this mob?
Nov 13 '05 #2

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

Similar topics

3
by: Laax | last post by:
Hi, I am trying to compile a .cc file and get the following error. I have translated the error message from original japanese text. So, it may not look exactly like standard(English) error...
1
by: Tony Johansson | last post by:
Hello! I get compile error when compiling using the command javac from the command terminal window(CMD). I have just two classes which are called HelloWorld.java and Slask.java. I have both...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
5
by: Bruce D | last post by:
I'm wondering why I cannot compile a co-workers project from my PC? Here's the situation: We both have WinXP. We both have VS .NET 2003 installed. I can open her project and make changes to the...
2
by: mudge | last post by:
Hi, I'm getting some very strange problems with some C# code. We're running an ASP.NET application on a local server in a DMZ. If I access it using the internal address, the application works...
13
by: hn.ft.pris | last post by:
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv){ const double L = 1.234; const int T = static_cast<const int>(L); int arr;
5
by: wong_powah | last post by:
#include <vector> #include <iostream> using std::cout; using std::vector; enum {DATASIZE = 20}; typedef unsigned char data_t;
1
by: prakash.mirji | last post by:
Hello, I am trying to compile C++ code which uses rogue wave 9.0 classes on RHEL 4.0. I use gnu g++ compiler to compile the code. Compiler is not able to match the right type of parameters to...
5
by: sam.barker0 | last post by:
Hi all, I have this following error In test.h =========================================== #include <iostream> #include <cstddef> #include <utility>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.