10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I get this error,
defaults.cpp: In member function ‘int Defaults::GetIntDefault(const std::string&)’:
defaults.cpp:68: error: ‘atoi’ was not declared in this scope
defaults.cpp: In member function ‘real_t Defaults::GetRealDefault(const std::string&)’:
defaults.cpp:76: error: ‘atof’ was not... (1 Reply)
Discussion started by: bstephens
1 Replies
2. Shell Programming and Scripting
I have a script which does gunzip, zip and untar.
Input to the script is file name and file directory (where file is located)
I am reading the input parameters as follows:
FILENAME=$1
FILEDIR=$2
I have created 3 functions that are as follows:
1) gunzip file
2) unzip file... (2 Replies)
Discussion started by: pinnacle
2 Replies
3. Shell Programming and Scripting
Hi I need to call a function written in a cpp file with arguments inside the shell script..Can anyone help me how to do this:( (1 Reply)
Discussion started by: rkrish
1 Replies
4. Programming
Anyone know why I might be getting these messages when I'm debugging in dbx? When it stops, I'll get messages like:
stopped in get_smtp_line() at line 248 in file "" ($t1)
couldn't read "mail_un.cpp"
And then I can't list the contents of the file. (2 Replies)
Discussion started by: ctote
2 Replies
5. Shell Programming and Scripting
Hello,
I'm learning the perl's Find function using unix but I keep getting this error when running the script:
"Not a CODE reference at /usr/lib.perl5/5.8.8/File/Find.pm line 822" - what does this mean?
Does anyone know??? Here's my script:
use File::Find;
find (\$dir,$ENV{HOME});
... (4 Replies)
Discussion started by: new bie
4 Replies
6. Emergency UNIX and Linux Support
File: A.h
class A
{
public:
struct x X;
int show()
{
x.member_variable ? 0: -1;
}
};
Now if A.cpp is complied which includes A.h (which is actually in a huge project space) we see that x.member_variable value is not as expected. But if remove the show() method and place... (4 Replies)
Discussion started by: uunniixx
4 Replies
7. Shell Programming and Scripting
Hello All,
Is there any way to find a function name in a program file using perl.
for example, there is a file called Test.C in that
.
.
void function1(..)
{
<some code>
}
int function2(..)
{
.
.
sam() /*RA abc100*/
...
..
..
xyz()/*RA abc201*/
.. (8 Replies)
Discussion started by: Parthiban
8 Replies
8. Shell Programming and Scripting
I need to find all the methods in a cpp file ... using shell script
Pls guide me regarding the grep criteria for searching methods
I mean what are the patterns to be grepped in *.cpp which match methods
Hope i have made myself clear
Thanks and Regards
-- Ultimatix (2 Replies)
Discussion started by: ultimatix
2 Replies
9. AIX
Hi ,
I Want to apply AIX lint to my source code which all are *.cpp/*.h
>lint test.cpp
lint: 1286-332 File test.cpp must have a .c, .C or .ln extension. It is ignored.
lint: 1286-334 There are no files to process.
I am getting above error.
-Ashok (3 Replies)
Discussion started by: ashokd001
3 Replies
10. Shell Programming and Scripting
I'm trying to develop a script that makes it so only .cpp programs can print. I'm doing it for my computer programming class because everyone keeps printing the executable instead of the source code and it's wasting a lot of paper. How can I accomplish this? Thanks for the help. :D (5 Replies)
Discussion started by: Irish_Cereal
5 Replies