08-27-2010
Maybe you're actually including a different A.h than you think you are. That's what this smells like.
If you want to get to the bottom of this, make the smallest code you can that recreates your problem. Make a B.h that only contains the snippet above and a B.cpp that uses it and does nothing else. Does the problem still happen? What if you try using B.h from inside A.cpp (complex cpp, simple .h)? What about if you use A.h from inside B.cpp (simple cpp, complex .h)? What if you take A.h and cut it in 1/2,1/4,1/8 etc... (A1.h,A2.h include in B.cpp (1/2 complex .h file, simple .cpp file).
10 More Discussions You Might Find Interesting
1. Linux
say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt.
2)/exam/newfolder1/
and i create a tar say exam.tar
well the problem is,
when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories.
on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies
2. 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
3. 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
4. Shell Programming and Scripting
I have an error in my logs as it shows some function name .
1. I dnt know where is the file.cpp located only i know the machine .
2. How to find out that the function name is loacated in which path and which file into that machine.
Thanks . (1 Reply)
Discussion started by: madfox
1 Replies
5. Shell Programming and Scripting
Imagine a user-defined function.
func() { /usr/pkg/bin/program long-string-of-switches-and-configs "$@" ;}
I execute it once. Then background it.
I execute another instance. Then bg it.
func unique-user-input
^Z
func unique-user-input
^Z
First I view with ps
ps wwaux
... (0 Replies)
Discussion started by: uiop44
0 Replies
6. Shell Programming and Scripting
Hi;
Is der ne to to use user defined functions for the values in awk
find $1 -type f -ls | nawk '{{print "|"$3"|"$5"|"$6"|"$8"|"$9"|"$10"|"} for(i=11;i<=NF;i++){printf("%s",$i)}}'
In above command i want to append some values returned by user functions on line.
thnks;
ajay (1 Reply)
Discussion started by: ajaypadvi
1 Replies
7. Shell Programming and Scripting
Hi folks,
is there any recommendation, especially from a point of performance, about where to place a user-defined function in awk, like in BEGIN{} or if it is only need once at the end in END{}? Or doesn't it matter at all since, awk is so clever and only interprets it once, wherever it is... (3 Replies)
Discussion started by: zaxxon
3 Replies
8. 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
9. Shell Programming and Scripting
In the below script i found that the alias mkdir_s is getting invoked from function configure() i.e the alias is kicking in.
#!/bin/bash -e
shopt -s expand_aliases
alias mkdir=mkdir_s
mkdir_s(){
if ]; then
return
else
/usr/bin/mkdir "$1"
return
fi
}
configure()
{
mkdir -p... (9 Replies)
Discussion started by: mohtashims
9 Replies
10. Shell Programming and Scripting
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
LEARN ABOUT DEBIAN
wibble-test-genrunner
wibble-test-genrunner(1) General Commands Manual wibble-test-genrunner(1)
NAME
wibble-test-genrunner - Code generator for wibble testsuites.
SYNOPSIS
wibble-test-genrunner header <file>
wibble-test-genrunner main <files>
DESCRIPTION
The program generates .cpp files that are then compiled and linked into a test program for running tests from .test.h files. Examples of
such .test.h files may be found among wibble headers, eg. /usr/include/wibble/regexp.test.h.
In the first form, the program processes a single header file (usually of the form foo.test.h) and produces a corresponding .cpp file to be
compiled. In the second form, it takes as <files> all the .test.h headers and produces a single main.cpp which contains the main() function
of the test program, which then runs all the tests in all the .test.h files. The generated source code is always written to standard output
and it is left up to the user to redirect it to a meaningful location.
The program currently has no options other than the two forms above. The program is intended to be run as part of build process of programs
or libraries using the wibble testing framework. For convenient use from CMake, there is a test.cmake script under /usr/share/wibble, that
takes care of producing all the .cpp files (both per-header and the main one), compiling them and linking them into a single binary which
executes the testsuite.
AUTHOR
Petr Rockai <me@mornfall.net>
wibble-test-genrunner(1)