Sponsored Content
Full Discussion: a promble with compliation
Top Forums UNIX for Dummies Questions & Answers a promble with compliation Post 302081927 by willing007 on Friday 28th of July 2006 09:59:00 PM
Old 07-28-2006
a promble with compliation

hi everyone:
i have write a c++ program, my server is sun solaries,and the database is oracle 9i ,however, another guy use makefile to compile my programm.
the libs in the makefile is
"LIBS=-lwtc9 -lcurses -lclient9 -ldl -lresolv -lclntsh -lcommon9 -lcore9 -lmm -Qy -lc -lm -lsocket -ltracept9 -lgeneric9 -lncrypt9 -lnls -ldbm "

but it can,t compile successfully. the following are the errors .
Undefined first referenced
symbol in file
operator new[](unsigned) /BilliX/account/publib/publib.a(MemMgr.o)
operator new(unsigned) CAccountingLog.o
__cxa_allocate_exception testCAccountingLog.o
vtable for __cxxabiv1::__si_class_type_infoCAccountingLog.o
__cxa_end_catch testCAccountingLog.o
__cxa_begin_catch testCAccountingLog.o
operator delete(void*) CAccountingLog.o
__cxa_throw testCAccountingLog.o
vtable for __cxxabiv1::__class_type_infotestCAccountingLog.o
__gxx_personality_v0 testCAccountingLog.o
__cxa_pure_virtual /BilliX/account/publib/udbc_oracle.a(OracleConnection.o)
vtable for __cxxabiv1::__pointer_type_info/BilliX/account/publib/publib.a(ObjMgr.o)
cftime(char*, char*, long const*) /BilliX/account/publib/publib.a(CDate.o)
ld: fatal: Symbol referencing errors. No output written to testCAccountingLog
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `app'


is it the LIBS having no enough libs or something else.
who would like to help me would be appreciated!
 

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

'make' problems (compliation problems?)

I'm trying to compile and install both most recent version of 'make' and the most recent version of 'openssh' on my Sparc20. I've run into the following problems... and I don't know what they mean. Can someone please help me resolve these issues? I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies

2. Solaris

Compliation Error in solaris - macro "min" requires 2 arguments, but only 1 given

Hi, I am trying to compile our linux code base in solaris and came across the following issues. Am I suppose to do something special ? Can anyone help me to fix this issue. System : uname -a SunOS aspen 5.10 Generic_125100-08 sun4u sparc SUNW,Sun-Fire-280R The complier that I am using is... (0 Replies)
Discussion started by: learningkid
0 Replies

3. Linux

OFED Compliation for Non running Kernel

Has anyone configured OFED packages for a non running kernel? In my case, I need to integrate the OFED packages to a kernel which is built but not installed. (0 Replies)
Discussion started by: diptajeet
0 Replies
XMALLOC(3pub)						       C Programmer's Manual						     XMALLOC(3pub)

NAME
xmalloc, xrealloc, xfree, xstrdup, xmemdup, memdup - memory allocation functions for Publib SYNOPSIS
#include <publib.h> void *xmalloc(size_t bytes); void *xrealloc(void *ptr, size_t bytes); void xfree(void *ptr); char *xstrdup(const char *string); void *memdup(const void *mem, size_t bytes); void *xmemdup(const void *mem, size_t bytes); DESCRIPTION
These functions are utility functions for memory allocation from the publib library. xmalloc, xrealloc, and xfree are error checking ver- sions of the standard library routines malloc, realloc, and free, respectively. They are guaranteed to never return unless there was no problem: if, for example, xmalloc is unable to allocate the requested amount of memory, it prints an error message and terminates the pro- gram. Hence, the caller does not need to check for a NULL return value, and the code that calls these functions is simpler due to the lack of error checks. Similarly, xstrdup is an error checking version of the common (though not standard) strdup routine, which creates a duplicate of a string by allocating memory for the copy with malloc. (For systems that lack strdup, publib provides one in its portability module; it is always declared in <publib.h>.) memdup is similar to strdup, it creates a copy of an arbitrary memory area (the arguments are a pointer to the beginning of the area, and its size) by allocating memory for the copy with malloc. xmemdup is its error checking version. NOTE
xmalloc and xrealloc treat a request to allocate a block of 0 bytes as an error. xrealloc will allow its first argument to be NULL. SEE ALSO
publib(3), malloc(3), strdup(3) AUTHOR
Lars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual XMALLOC(3pub)
All times are GMT -4. The time now is 07:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy