This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC compiling problem on solaris intel machine
- From: "Jing Lee" <jlee at kang dot bondnet dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 25 Nov 2002 17:48:35 -0500
- Subject: GCC compiling problem on solaris intel machine
Hi,
I have encountered some problem while using gcc 3.2 to compile a c++ package
generated by jnipp.
Here's the details:
gcc -O0 -c -fPIC -Wall -I. -I/home/admin/jnipp/include -I/opt/java/j2sdk1.4.
1_01/include
-I/opt/java/j2sdk1.4.1_01/include/solaris java/util/LocalProxy.cpp -o
java/util/LocaleProxy.o
============================================================================
=
In file included from java/util/ResourceBundleProxy.h:30,
from java/util/LocaleProxy.cpp:5:
sun/misc/SoftCacheProxyForward.h:5: parse error before numeric constant
===========================================================================
Looking at ResourceBundleProxy.h, line 30 is: #include
"sun/misc/SoftCacheProxyForward.h",
but sun/misc/SoftCacheProxyForward.h is as this:
#ifndef __sun_misc_ResourceProxyForward_H
#define __sun_misc_ResourceProxyForward_H
namespace sun
{
namespace misc
{
class ResourceProxy;
}
}
#endif
line 5 is: namespace sun.
I've been spent whole week working on it, but have no clue at all. Is there
anything wrong with my configuration? Is there any gcc option that can help
me by-pass this? I read some messages regarding the similar problem, but
counld not find any answer. If anyone has experience on this, please do
help me out!!!!!!!
Thanks a lot and waiting for the early reply!!!
Jane Li