GCC compiling problem on solaris intel machine

Jing Lee jlee@kang.bondnet.com
Tue Nov 26 06:06:00 GMT 2002


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



More information about the Gcc-help mailing list