This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]