LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2008, 09:26 AM   #1
Jane2008
Member
 
Registered: Oct 2008
Posts: 36

Rep: Reputation: 15
/ArgParser.cpp:207: error: 'atoi' was not declared in this scope


I tried to install a software on Debian Linux.
When I compiled this program, the following errors were showed:
ArgParser.cpp: In member function 'virtual size_t CmdArgInt:arse(const char*)':
../ArgParser.cpp:207: error: 'atoi' was not declared in this scope
../ArgParser.cpp: In member function 'virtual size_t CmdArgDouble:arse(const char*)':
../ArgParser.cpp:224: error: 'atof' was not declared in this scope
make[2]: *** [ArgParser.o] Error 1
make[2]: Leaving directory `/home/hxu/EPICS/extensions/src/ChannelArchiver/Tools/O.linux-x86'
make[1]: *** [install.linux-x86] Error 2
make[1]: Leaving directory `/home/hxu/EPICS/extensions/src/ChannelArchiver/Tools'
make: *** [Tools.install] Error 2

I searched the Internet for related information and none was useful.
I'd like someone to put me out from this question.
Thanks!
 
Old 11-04-2008, 01:23 PM   #2
beiller
LQ Newbie
 
Registered: Nov 2008
Posts: 22

Rep: Reputation: 15
atoi = converts to an interger
atof = converts to a float.

these functions are included in one of these header files:

#include <stdio.h>
#include <stdlib.h>

try viewing ArgParser.cpp and make sure these include lines are near the top

see:
http://www.cplusplus.com/reference/c...dlib/atoi.html
http://www.cplusplus.com/reference/c...dlib/atof.html

for more info
 
Old 11-07-2008, 09:23 AM   #3
Jane2008
Member
 
Registered: Oct 2008
Posts: 36

Original Poster
Rep: Reputation: 15
Thank.
It worked now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FYI: dvd+rw-tools-7.1 slackware 12.1 compile error 'INT_MAX' was not declared coldbeer Slackware 4 09-15-2008 02:45 PM
Error Prompt - 'Execute_command was not declared in this scope. Please help! thhuang Linux - Newbie 1 11-05-2007 12:38 AM
ltoa not declared in the scope lucky6969b Programming 3 12-23-2005 08:44 AM
scope of an object and global scope lucky6969b Programming 7 12-09-2005 09:09 PM
debian dpkg cpp depends on cpp error darkleaf Linux - Software 2 06-25-2004 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration