1 msgSuggestion required for appropriate implementation
11 msgAn article I alluded to
3 msgStrange floating point problems on SH4 with gcc...
5 msgg++/gcc : Floating point issue
1 msgCreating a Windows dll in Linux?
2 msgoutput to a directory which doesn't exit yet
1 msgGCC 3.4.4 compilation error for arm-linux target
1 msgproblems with precompiled header - vector and a...
1 msgbuiltin bounds checking how-to
1 msghelp installing gcc 4.0.3

help spawning/executing a command line utility
\ Jeffrey Holle (24 Jul 2006)
. \ Ian Lance Taylor (24 Jul 2006)

1 msggcc symbols
3 msgstatic variables, the stack, the heap, and speed
1 msgg++ -- can unused constructors affect generated...
2 msgsending structure containing a pointer to anoth...
4 msgARM Assembler
9 msgCygWin - GCC compiler error
1 msgGCC: Linking problem
1 msgFully qualified lib name.
2 msggcc -print-search-dirs
Subject:Re: help spawning/executing a command line utility
Group:Gcc-help
From:Ian Lance Taylor
Date:24 Jul 2006


Jeffrey Holle <jeffreyholle> writes:

> I'm using gcc v4.0.1 on Ubuntu Linux.
>
> I want to incorporate calls to command line utilities in my C++ for
> test purposes. These utilities require parameters, but return no
> information to my C++ program.
>
> I can't find the proper function to use. spawn/execute/pexecute?
>
> All I've found in my /usr/include directory is spawn.h, and it
> includes a bunch of functions starting with posix_. Before I start
> playing around with these "undocumented" functions, could somebody:
>
> - tell me the easiest way.
> - the necessary library to link to.
> - where any online documentation is located at?

This is not a gcc question. It is a general Unix programming
questions. gcc-help is the wrong mailing list for this sort of
question.

You probably want to look into the execve() or system() calls.

Ian


© 2004-2008 readlist.com