473,396 Members | 1,871 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,396 software developers and data experts.

I would like to know how to exclude some functions in the libraries.

hi all,

I am working for code migration of roguewave libraries of c++.
when i am upgrading it is giving the following errors..The errors are
because of the functions defined both in cstdlib and stdlib.h
like i am using the makefile.I would like to know how to remove the
conflict of bsearch and qsort.Thanks in advance

Error 174: "/apps/opt/rw_buildspace/include/ansi/cstdlib", line 192 #
Redefined function "void *std::bsearch(const void
*,const void *,unsigned long,unsigned long,int (*)(const void
*,const void *))"; previously defined at
["/usr/include/stdlib.h", line 120].
bsearch (const void *__key, const void *__base, size_t __n,
size
^^^^^^^
Error 174: "/apps/opt/rw_buildspace/include/ansi/cstdlib", line 201 #
Redefined function "void std::qsort(void *,unsigned
long,unsigned long,int (*)(const void *,const void *))";
previously defined at ["/usr/include/stdlib.h", line 81].
qsort (void *__base, size_t __n, size_t __size,
^^^^^
make: *** [SystemAdmin_c.o] Error 2
Jul 19 '05 #1
2 1901
Dheeraj Kumar wrote:
hi all,

I am working for code migration of roguewave libraries of c++.
when i am upgrading it is giving the following errors..The errors are
because of the functions defined both in cstdlib and stdlib.h
like i am using the makefile.I would like to know how to remove the
conflict of bsearch and qsort.Thanks in advance

[Error Messages SNIPPED]

Contact Rogue Wave for instructions how to set up that library properly or
for an update. And please read this:

http://www.slack.net/~shiva/welcome.txt

--
Attila aka WW
Jul 19 '05 #2
dh******************@infy.com (Dheeraj Kumar) writes:
hi all,

I am working for code migration of roguewave libraries of c++.
when i am upgrading it is giving the following errors..The errors are
because of the functions defined both in cstdlib and stdlib.h


You're probably including both cstdlib and stdlib.h - mixing old style
and new style headers is never a good idea, so make a choice and
stick with it.

kind regards
frank

--
Frank Schmitt
4SC AG phone: +49 89 700763-0
e-mail: frankNO DOT SPAMschmitt AT 4sc DOT com
Jul 19 '05 #3

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

Similar topics

9
by: vegetax | last post by:
I was a java developer one year ago ,before i moved to python i realy liked it at the beggining, but i got very disapointed lately since my previus two python proyects where relatively big,and...
1
by: Frode Langelo | last post by:
Hi, I am running Rational Quantify 2002a.06.00 on Solaris 2.8 . Is there a way to have Quantify exclude libraries from its measurements by for instance defining these in a file, or is that only...
31
by: somebody | last post by:
No, I'm not a troll, just angry. I just started learning C++, and find it extremely lacking compared to Java. For example, I had to write my own functions to do something as simple as a case...
14
by: Blue Ocean | last post by:
Hey all, I have another question. I may seem like a moron here, but where can I find out how C-standard functions like malloc() and printf() are declared? I know that I can find on my computer...
3
by: Stephen Sprunk | last post by:
On a project I'm working on, I ran across the following macros: /* assume s is struct stream *, s->p is char, v is unit16_t or uint32_t */ #define in_uint16_le(s,v) { v = *((s)->p++); v +=...
7
by: Neo | last post by:
I am using linux for my c programs and while compiling I some times have to use -lm for math libraries .. that is linker option, but how will I know the library which I have to link ......
1
by: Liam | last post by:
We recently decided to go from cookieless to cookies, changing web.config to read cookieless=false. Since making that change, I've noticed that javascript functions kept in included libraries...
10
by: ampeloso | last post by:
I'm pretty new to c coming from other MS languages. I have a few questions about library functions 1. The headers specify the functions, but where are the actual functions.Apparently they are...
6
by: vasudevram | last post by:
Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? I wrote a function to generate other functions using something like eval("def foo: ....") but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.