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

Compile problem

I have been working on a small application out of boredum and have ran into a
slight problem. In one of the lines I used: if(isblank(u_name[count_element])
== 0) {

at compile time I get the error: warning: implicit declaration of function
`isblank'.

Simple workaround I just used isspace() instead, but I would still like to know
what the problem is. Doing my own investigation I found that
/usr/include/ctype.h does have isblank() is defined and of course the manpage
does show it as being under ctype.h. Now in /usr/include/linux/ctype.h
/usr/lib/bcc/include/ctype.h isspace is not defined at all. Is isblank() a
nonstandard function in ctype? I really don't mind having the easy work around
but I always want to know why something failed that I tried. Any help is
appreciated.
Nov 13 '05 #1
2 3751
On 03 Nov 2003 02:46:34 GMT, di********@aol.comnospam (Digitalcoup)
wrote in comp.lang.c:
I have been working on a small application out of boredum and have ran into a
slight problem. In one of the lines I used: if(isblank(u_name[count_element])
== 0) {

at compile time I get the error: warning: implicit declaration of function
`isblank'.

Simple workaround I just used isspace() instead, but I would still like to know
what the problem is. Doing my own investigation I found that
/usr/include/ctype.h does have isblank() is defined and of course the manpage
does show it as being under ctype.h. Now in /usr/include/linux/ctype.h
/usr/lib/bcc/include/ctype.h isspace is not defined at all. Is isblank() a
nonstandard function in ctype? I really don't mind having the easy work around
but I always want to know why something failed that I tried. Any help is
appreciated.


There is a standard C library function isspace() prototyped in
<ctype.h>, and there has been since the original 1989 ANSI C standard.
There is another function named isblank() that was added to <ctype.h>
by the 1999 major update to the C standard.

Your compiler might be operating in a C89 conforming mode where it
does not recognize newer C99 prototypes. You will need to ask in a
Linux programming group, such as news:comp.os.linux.development.apps,
as to how to get your compiler to recognize this. I would suggest you
specify your compiler's version Linux version when you ask there.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Nov 13 '05 #2
From: Jack Klein

<snip most>
You will need to ask in a
Linux programming group, such as news:comp.os.linux.development.apps,
as to how to get your compiler to recognize this. I would suggest you
specify your compiler's version Linux version when you ask there.


Yes, I was just about to post that I found my own answer. I compiled with gcc
-o 'filename' -Wall -Werror -ansi -pedantic -std=c99 'filename.c' and it worked
just fine. Thanks for your input though.
--
Hackattack v1.0 download: http://www.geocities.com/s1gterm/

Nov 13 '05 #3

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

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
9
by: serge | last post by:
I have a stored procedure that is over 1000 + lines of code. When i try to compile I get the following error: ABC.TEST123: 1285: SQL0104N An unexpected token "END" was found following " END...
10
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
6
by: Tom | last post by:
I am developing my pages on my development machine and then copying to the production server. I am not pre-compiling, I am using the 'dynamic compile' feature. This is working fine except that...
0
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.