473,403 Members | 2,071 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,403 software developers and data experts.

Expert advice needed on C++ errors while doing make

Dear friends
I am in the process of creating the new server binary for Systinet
Server for C++. I did make all and I am getting C++ error which Im
posting below

$ make all
Error 419: "../interop/java/impl.h", line 14 # 'Barn_BarnServiceImpl'
is used as a type, but has not been defined as a type.
class BarnServerImpl : public Barn_BarnServiceImpl {
^^^^^^^^^^^^^^^^^^^^
Error 376: "../interop/java/impl.h", line 14 # Class name expected.
class BarnServerImpl : public Barn_BarnServiceImpl {
^^^^^^^^^^^^^^^^^^^^
Error 419: "../interop/java/impl.h", line 16 # 'Barn_CowArray' is used
as a type, but has not been defined as a type.
Barn_CowArray *cows;
^^^^^^^^^^^^^
Error 20: "../interop/java/impl.h", line 18 # '[' expected before '*'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong
id);
^
Error 19: "../interop/java/impl.h", line 18 # Unexpected
'WASP_LongLong'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong
id);
^^^^^^^^^^^^^
Error 24: "../interop/java/impl.h", line 18 # '(' expected instead of
';'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
^
Error 22: "../interop/java/impl.h", line 19 # Syntax error.
Barn_Cow *cloneCow (Barn_Cow *cow);
^
Error 419: "../interop/java/impl.h", line 25 # 'Barn_ArrayOflong' is
used as a type, but has not been defined as a type.
virtual void slaughterCows (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^
Error 20: "../interop/java/impl.h", line 26 # ':' expected before '*'.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong
* p0);
^
Error 172: "../interop/java/impl.h", line 26 # Undeclared variable
'Barn_ArrayOflong'.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong
* p0);
^^^^^^^^^^^^^^^^
Error 335: "../interop/java/impl.h", line 26 # ANSI C and C++ do not
allow named bitfield with zero width.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong
* p0);
^^^^^^^^^^^^^^^^^^
Error 334: "../interop/java/impl.h", line 26 # Bitfield width cannot be
larger than the size of its type '<no type>'.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong
* p0);
^^^^^^^^^^^^^^^^^^
Error 699: "../interop/java/impl.h", line 26 # Error limit reached;
halting compilation.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong
* p0);
^^^^^^^^^^^^^^^^^^
*** Error exit code 2

I checked the impl.h file and which seems to be OK .
The impl.h file is as below
----------------------------------------------------------------------------------------------------------------------------------------
/* Copyright 2001-2005 Systinet Corp. All rights reserved. */
/* Use is subject to license terms. */

#ifndef __WASP_DEMO_BARN_SERVICE_H
#define __WASP_DEMO_BARN_SERVICE_H

#include <waspc/config/config.h>

#include <waspc/util/exceptions.h>

// Generated code includes
#include "../java/barnImpl.h"

class BarnServerImpl : public Barn_BarnServiceImpl {

Barn_CowArray *cows;

Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
Barn_Cow *cloneCow (Barn_Cow *cow);

public:
BarnServerImpl();
virtual ~BarnServerImpl();

virtual void slaughterCows (Barn_ArrayOflong * p0);
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong *
p0);
virtual Barn_ArrayOfCow * cowsForSlaughter ();
virtual Barn_ArrayOfCow * getCows (Barn_ArrayOflong * p0);
virtual double barnRating ();
virtual Barn_Cow * theBestCow ();
virtual Barn_ArrayOfCow * getAllCows ();

};

#endif // __WASP_DEMO_BARN_SERVICE_H
--------------------------------------------------------------------------------------------------------------------------------------------

can someone please guide me in the right direction i resolving these
errors ?

Thanks
Amit

Nov 16 '06 #1
3 1319
* Amit_Basnak:
>
$ make all
Error 419: "../interop/java/impl.h", line 14 # 'Barn_BarnServiceImpl'
is used as a type, but has not been defined as a type.
class BarnServerImpl : public Barn_BarnServiceImpl {
^^^^^^^^^^^^^^^^^^^^
----------------------------------------------------------------------------------------------------------------------------------------
/* Copyright 2001-2005 Systinet Corp. All rights reserved. */
/* Use is subject to license terms. */

#ifndef __WASP_DEMO_BARN_SERVICE_H
#define __WASP_DEMO_BARN_SERVICE_H

#include <waspc/config/config.h>

#include <waspc/util/exceptions.h>

// Generated code includes
#include "../java/barnImpl.h"
This include file should define the missing types. Possibly this
include file must be generated by some JNI tool.

class BarnServerImpl : public Barn_BarnServiceImpl {
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #2
Thanks Alf P. Steinbach for your comments.
Well barnImpl.h was generated by wsdl compiler for SOAP using Systinet
Server. Impl.h was already present. The thing I dont understand is how
come JNI is been used in this as this is all C++ code. Could you please
eleborate on this more ?

Thanks for your time
Amit

This include file should define the missing types. Possibly this
include file must be generated by some JNI tool.

class BarnServerImpl : public Barn_BarnServiceImpl {

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #3
* Amit_Basnak:
[top-posting, quoting extranous material, quoting signature]
Please don't top-post in this group. Please quote only what's relevant
for your follow-up. Please don't quote signatures.

Corrected.
* Amit_Basnak:
>This include file should define the missing types. Possibly this
include file must be generated by some JNI tool.
>>class BarnServerImpl : public Barn_BarnServiceImpl {
Thanks Alf P. Steinbach for your comments.
Well barnImpl.h was generated by wsdl compiler for SOAP using Systinet
Server. Impl.h was already present. The thing I dont understand is how
come JNI is been used in this as this is all C++ code. Could you please
eleborate on this more ?
The path "../java/barnImpl.h" indicates JNI.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #4

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

Similar topics

7
by: John Smith | last post by:
Hi All, Sorry if I am calling expert's advice on such a simple thing. I am reading a c++ code but do not understand what this means? #define DM_ITEMS 6 #define FM_ITEMS ( 1 << (DM_ITEMS -...
9
by: Laban | last post by:
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database...
6
by: V. Jenks | last post by:
I apologize if this is the wrong forum for this, I could not locate one that was exactly appropriate for this topic. Over the last couple of years I've been doing a lot of reading on design...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
3
by: apattin | last post by:
Hi all, I need some expert advice on a ROLLUP fine point. summary_table table has 4 columns: file_id primary_site morphology primary
4
by: tony | last post by:
I'm designing a survey form page that will be fairly complex and am becoming confident enough with PHP now to tackle most things. (Thanks to everyone here who has helped) Before I go too far...
3
by: Tony | last post by:
I have a WebApp with 3 text boxes and 1 button, as described below. Can someone please explain why the bad scenarios are occurring and better still if they can be prevented or worked-around?...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
8
by: STG | last post by:
Greetings, My group has an SDK that was developed 5 years ago with VC++ 6. Over the last years, the requests for a VS.NET SDK has reached critical mass and I am now in the process of doing that....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.