Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > library problem

Reply
Thread Tools

library problem

 
 
wongjoekmeu@yahoo.com
Guest
Posts: n/a
 
      04-09-2008
Hello All,
I have a question that maybe someone would be able to give me some
advice. In linux I have written a C++ program which makes use of a
library. The library is actually a sort of an API, which I use to
control a machine. When I call the initialise() function of the API,
it seems that a thread is being started and a value 0 is constantly
written to standard output. I know this, because in my main function I
have a menu where the user can enter an integer then press enter to
choose which menu function to execute. Because I print out to standard
out the value that is being enter I see the value 0. Probably 0 and \n
is being passed by the initialise() function in the library. Of course
I don't want this to happen, so I was wondering if there is anyway how
I can redirect the 0 value that the library thread is passing to
standard output. I have no source code of the library. Anyone has any
suggestion or advise for me. ?
Many thanks in advance.
RR
 
Reply With Quote
 
 
 
 
Noah Roberts
Guest
Posts: n/a
 
      04-09-2008
wrote:
> Hello All,
> Anyone has any
> suggestion or advise for me. ?


Yeah, you'd be best served asking this in a Linux specific newsgroup.
Neither threads nor libraries are part of the standard. The methods to
work with them are VERY platform specific.
 
Reply With Quote
 
 
 
 
fred.l.kleinschmidt@boeing.com
Guest
Posts: n/a
 
      04-10-2008
On Apr 9, 12:09*pm, "wongjoek...@yahoo.com" <wongjoek...@yahoo.com>
wrote:
> Hello All,
> I have a question that maybe someone would be able to give me some
> advice. In linux I have written a C++ program which makes use of a
> library. The library is actually a sort of an API,

<snip>

A library is not "a sort of an API".

A library *HAS* an API - Application Programmer Interface.

The API is an (accurate) *description* of all of the
public methods, variables, structs, classes, etc., in the
library, telling the programmer how to use it.

--
Fred Kleinschmidt
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static library Vs. Dynamic library iceColdFire C++ 3 05-17-2005 06:16 AM
Dynamic Library or Static Library under Linux gouqizi.lvcha@gmail.com C++ 6 05-10-2005 03:16 PM
Re: Difference between Web Control Library and Class Library Alan Ferrandiz [MCT] ASP .Net 0 09-11-2004 01:51 PM
Re: Difference between Web Control Library and Class Library Mythran ASP .Net 0 08-24-2004 05:53 PM
Library in library... Sweep C++ 1 12-09-2003 04:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57