public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Am a newbie : What am i doing wrong???
@ 2002-06-25 21:10 Pravinkumar_Shivakumar
  0 siblings, 0 replies; only message in thread
From: Pravinkumar_Shivakumar @ 2002-06-25 21:10 UTC (permalink / raw)
  To: gcc-help


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.
**************************************************************************

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-26  4:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-25 21:10 Am a newbie : What am i doing wrong??? Pravinkumar_Shivakumar

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).