06-19-2012
Do you have a .h file the defines a function prototype and classes exported by the cpp file?
You will need to write another cpp file with a main() function that collects the command line arguments passed from the shell then calls the function and returns an exit code back to the shell.
Compile this main cpp and link a compiled .o file from the cpp file use c++ -c fn_file.cpp to compile the cpp file.
This User Gave Thanks to Chubler_XL For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to call a C function from within a shell script. This C function is part of an API. What do I need to make it work from my shell script. Anybody please help. (4 Replies)
Discussion started by: seshagiri
4 Replies
2. UNIX for Dummies Questions & Answers
i have a function defined in one ksh (ksh 1)
i want to use that function in another ksh (ksh 2)
i am using
. $<directoryname>/<ksh name>
i am calling the function defined in ksh 1 in ksh 2
i want the returnstatus from the above operation
but it is not executing the function
what i... (1 Reply)
Discussion started by: trichyselva
1 Replies
3. Shell Programming and Scripting
Hi,
I have searched the forum for the query, But i didnt find an exact answer.
I have a script(1.sh) and a c program(sample.c)
sample.c contains many function definitions.( run(), find(), add() etc).
I want to call functions in sample.c from 1.sh and use the return value in 1.sh... (3 Replies)
Discussion started by: jisha
3 Replies
4. Shell Programming and Scripting
Hi All,
My 1.txt contains some functions
fun1()
....
....
fun2()
....
....
I can call these fun from 2.txt inside awk as below
value="`fun1 "argument1"`"
awk 'BEGIN {printf ("%s", "'"$value"'")}'
I need to modify the above code so that without using the variable to store... (2 Replies)
Discussion started by: jisha
2 Replies
5. Shell Programming and Scripting
Some Code
After Some code part is executed the control doesnt go to rvin_doxx_scrt.. and the script exits
rvin_doxx_scrt()
{
Some Code
}
if (som code)
... (4 Replies)
Discussion started by: ultimatix
4 Replies
6. 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
7. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Discussion started by: kowit010
6 Replies
9. Shell Programming and Scripting
I need to
1.Open a csv
2.Process the csv i.e. Modify 2 column in the csv.
To modify the column the value needs to be passed to a pl/sql function and the return value should be updated
For eg:
If column 2 E,then E will be passed in database function
which will return Employee.
3. Write a... (5 Replies)
Discussion started by: Chinky23
5 Replies
10. Shell Programming and Scripting
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
Discussion started by: crypto87
3 Replies
LEARN ABOUT DEBIAN
sessions
RTP
sessions.(3) Library Functions Manual RTP sessions.(3)
NAME
RTP sessions. -
Classes
class TRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >
class SingleThreadRTPSession< RTPDataChannel, RTCPChannel, ServiceQueue >
This template class adds the threading aspect to the RTPSessionBase template in one of the many possible ways.
class RTPSessionBase
Generic RTP protocol stack for exchange of realtime data.
Typedefs
typedef SingleThreadRTPSession RTPSession
Uses two pairs of sockets for RTP data and RTCP transmission/reception.
typedef RTPSession RTPSocket
Alias for RTPSession.
typedef SingleThreadRTPSession
< SymmetricRTPChannel,
SymmetricRTPChannel > SymmetricRTPSession"
Uses one pair of sockets, (1) for RTP data and (2) for RTCP transmission/reception.
Detailed Description
Typedef Documentation
RTPSession
Uses two pairs of sockets for RTP data and RTCP transmission/reception. UDP/IPv4 RTP Session scheduled by one thread of execution.
Examples:
audiorx.cpp, audiotx.cpp, ccrtptest.cpp, rtphello.cpp, rtplisten.cpp, and rtpsend.cpp.
RTPSocket
Alias for RTPSession.
SymmetricRTPSession
Uses one pair of sockets, (1) for RTP data and (2) for RTCP transmission/reception. Symmetric UDP/IPv4 RTP session scheduled by one thread
of execution.
Author
Generated automatically by Doxygen for ccRTP from the source code.
ccRTP Sat Jun 23 2012 RTP sessions.(3)