troubleshooting Question

Whats wrong with this code?

Avatar of nigg
niggFlag for Israel asked on
13 Comments1 Solution231 ViewsLast Modified:
I'm not a C programmer (but Java) and need to get a c code working...


jbArray<java_object *>::primitiveArrayType java_object_array::array_type() const {
     return jbArray::T_CLASS;

Gives me the following error at the compiler (on Linux):

../../../common/decaf/ In method `jbArray<java_object
*>::primitiveArrayType java_object_array::array_type () const':
../../../common/decaf/ use of class template `template <elem_
t> class jbArray' as
../../../common/decaf/ parse error before `::'
../../../common/decaf/ warning: no return statement in functi
on returning non-void
../../../common/decaf/ In method
`jbArray<jfloat>::primitiveArrayType java_jfloat_array::array_type ()

Where do I look up the return type, like void? What do I need to change? For any help thanks...

BTW: Why does this not work?:

 char ch = va_arg(args, char);

The compiler complains about wrong type...I put va_arg(args, int); and it compiled..But is this right?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros