public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Pravinkumar_Shivakumar <Pravinkumar_Shivakumar@Satyam.com>
To: gcc-help@gcc.gnu.org
Subject: Am a newbie : What am i doing wrong???
Date: Tue, 25 Jun 2002 21:10:00 -0000	[thread overview]
Message-ID: <FA3F4D4380B5D51186D600B0D0AAD24203492D6B@ccr.satyam.com> (raw)


g++  -I./RWINCL -I./dbintfc -I
vol3/project1/OpenInstall/Installation/odbcsdk/include  mainnew.C
./dbintfc/SybServer.C ./dbintfc/User.C ./dbintfc/SybaseUser.C
./dbintfc/DBServer.C -L vol3/project1/OpenInstall/Installation/odbcsdk/Lib
-liodbc ./librwtool.a 

on compilation it gives the following error
----------------------------------------------------------------------------
---------------------------------------
In file included from RWINCL/rw/defs.h:635,
	from RWINCL/rw/tooldefs.h:191,
	 from RWINCL/rw/cstring.h:345,
                 from RWINCL/rw/rwstring.h:81,
                 from dbintfc/DBServer.H:37,
                 from dbintfc/SybServer.H:33,
                 from mainnew.C:1:
RWINCL/rw/generic.h:86: ANSI C++ forbids declaration `genericerror' with no
type
In file included from RWINCL/rw/defs.h:635,
                 from RWINCL/rw/tooldefs.h:191,
                 from RWINCL/rw/cstring.h:345,
                 from RWINCL/rw/rwstring.h:81,
                 from dbintfc/DBServer.H:37,
                 from dbintfc/SybServer.H:33,
                 from ./dbintfc/SybServer.C:9:
RWINCL/rw/generic.h:86: ANSI C++ forbids declaration `genericerror' with no
type
In file included from RWINCL/rw/defs.h:635,
                 from RWINCL/rw/tooldefs.h:191,
                 from RWINCL/rw/cstring.h:345,
                 from RWINCL/rw/rwstring.h:81,
                 from dbintfc/User.H:71,
                 from ./dbintfc/User.C:66:
RWINCL/rw/generic.h:86: ANSI C++ forbids declaration `genericerror' with no
type
In file included from RWINCL/rw/defs.h:635,
                 from RWINCL/rw/tooldefs.h:191,
                 from RWINCL/rw/cstring.h:345,
                 from RWINCL/rw/rwstring.h:81,
                 from dbintfc/User.H:71,
                 from dbintfc/SybaseUser.H:37,
                 from ./dbintfc/SybaseUser.C:71:
RWINCL/rw/generic.h:86: ANSI C++ forbids declaration `genericerror' with no
type
In file included from RWINCL/rw/defs.h:635,
                 from RWINCL/rw/tooldefs.h:191,
                 from RWINCL/rw/cstring.h:345,
                 from RWINCL/rw/rwstring.h:81,
                 from dbintfc/DBServer.H:37,
                 from ./dbintfc/DBServer.C:38:
RWINCL/rw/generic.h:86: ANSI C++ forbids declaration `genericerror' with no
type
g++: file path prefix `static' never used




I have added a void declaration in the definition of genericerror function
in generic.h (part of rogue wave include directory)

That solved the compilation problem, but while linking it gives the
following error


Undefined						first referenced
 symbol  						in file
operator+(char const *, RWCString const &)
/var/tmp/ccyepsmu.o
RWCString::operator=(char const *) 			 /var/tmp/ccH66767.
RWCString::~RWCString(void)        			 /var/tmp/ccH66767.
SybaseServer::echoQuery(RWCString)  			 /var/tmp/ccyepsmu.
SybaseServer::echoStatus(void)      			/var/tmp/ccyepsmu.
RWCString::RWCString(char const *) 			 /var/tmp/ccH66767.
RWCString::operator=(RWCString const &)			/var/tmp/ccyepsmu.
RWCString::RWCString(RWCString const &)			/var/tmp/ccH66767.
operator<<(ostream &, RWCString const &)
/var/tmp/ccyepsmu.
RWCString::RWCString(void)         			/var/tmp/ccH66767.
RWCString::replace(unsigned int, unsigned int, char const *, unsigned
int)/var/tmp/ccyepsmu.

ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
g++: file path prefix `static' never used

----------------------------------------------------------------------------
-----------------------------------

It seem it is not able to refer to the RWCString even though I included the
rogue wave library (librwtools.a)




************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

                 reply	other threads:[~2002-06-26  4:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FA3F4D4380B5D51186D600B0D0AAD24203492D6B@ccr.satyam.com \
    --to=pravinkumar_shivakumar@satyam.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).