UNIX/Linux Programming - September 2010

Serial I/O in two different threads
 
I need to read from my rs-232 port in one thread and write in my other thread. I am using fopen, fgetc, and fputc. I plan to get the file descriptor number an...
[1 reply] : Here's a cool example of serial I/O using Boost Asio: http://boost.2... (by PanGalactic)
by GnG
C++ deployment
 
Hi, I did an application that uses some libs like boost-thread, boost-filesystem, now I'd like to do a deployment using all that libs inside my project, beca...
[12 replies] Last: You'll go crazy with dependencies if you don't package up your softwar... (by PanGalactic)
search and save
 
Hey guys I need help with this assignment. So far I have the add function and the list function done correctly but I dont know how to do the search function and...
[no replies]
by Kanj
Blank screen when using vgagl
 
I'm learning to use gcc to compile simple C and C++ programs with vga.h and vgagl.h. Programs using only vga.h are working out fine. But whenever I use any vgag...
[7 replies] Last: When you run an X-Windows session, X-Windows needs the address of your... (by kooth)
by GnG
boost x32 libraries
 
Hi, I'm trying to prepare a computer that compile my program in 32 and 64 bits. The c++ compiler it's ok, but now I have to install libboost x32 and x64. I h...
[4 replies] Last: Thanks. (by GnG)
by Renier
tiff page count
 
Hi Guys I would like to get a page count of tiff files in C++. Does anyone know of a function that can fo this? Linux system. Regards
[1 reply] : You might start by looking at Boost GIL (not sure it has TIFF support)... (by PanGalactic)
how to create online compiler..
 
i want to create a online c++ compiler for a website,which may work as online solution to traditional(offline) compilers. what kind of programming i will have ...
[4 replies] Last: I wrote a syntax highlighter in Perl. It can even go as far as highli... (by moorecm)
root login program
 
Hey I'm fairly new to programming in c++, and I was wondering how I could make a program that logs me in as su root and automatically inputs my password? I've ...
[8 replies] Last: You do not want to hard-code your root password into your source code... (by kfmfe04)
Array of classes - new MyClass[0];
 
When I do a new MyClass where val can also be 0 then what is the expected output. Can this throw an exception ?
[9 replies] Last: Indeed. C programming used to be quite a dark art, verging on the occu... (by Galik)
by Mercfh
Command Line Interpreter
 
Yes this is a HW assignment, but no im not asking for a solution, but just a general "you should start with this" etc.. Here is the assignment, http://cs.uky...
[1 reply] : Hi Mercfh, I think your pseudocode makes sense, so I looked at the ... (by kooth)
g++ warning: `visibility' attribute
 
Hello, I use g++ 3.4 as the compiler and I encountered some problem which I didn't see in msvc first this code gives the warning "warning: `visibility' a...
[2 replies] Last: second what error exactly? third "including <dirent.h> must be va... (by vukki)
DB connection library and dynamic linking
 
I am working on a piece of code that connects to two different Sybase databases. One connection is done directly in the code the other is done through an ex...
[2 replies] Last: need to update the application which runs on a Solaris 8 machine to c... (by kbw)
by eriser
Longest length string accepted by cin/cout & istream objects
 
What is the longest length of a string accepted by istream objects, particularly cout and cin?
[1 reply] : Theoretically, infinite. In practice, it depends on how much memory y... (by firedraco)
how to resolve user-buffered I/O
 
hi all: i read a book which said that the class of i/o methods accompanied with c standard library is called user-buffered I/O excluding methods like read an...
[1 reply] : These days, operating systems do a much better job of buffering I/O. ... (by PanGalactic)
by cshong
Makefile executing another makefile
 
Assume that I had created a makefile in directory "projectX". In directory "projectX", assume that there is a subdirectory named "projectY" with a makefile insi...
[4 replies] Last: In a top-level makefile, just use something like: $(MAKE) -C dir ... (by moorecm)
undefined reference to - error
 
My code seems to give a number of "undefined reference to" errors. Here's the code: main.cc #include <iostream> #include "stack1.h" using namespace st...
[2 replies] Last: That worked, thanks. I used at least 3 different tutorials for temp... (by Zoefschildpad)
Where to start?
 
Hi, I'm making a game engine called "ORLY v2" (v1 was an SDL wrapper that required a dozen DLLs), and I'm interested in making it compatible with Unix/Linux. ...
[9 replies] Last: +1 Albatross (by kfmfe04)
C++ programming questions plz halp!
 
Can anyone post the code to any of these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters...
[1 reply] : Sorry, but that's one service we don't provide here: completing homewo... (by Albatross)
Is there any difference between #include <> and #include "" in terms of linking?
 
Is there any difference between installing a package and using #include <lib.h> and manually downloading the source of the code you want and using #include "lib...
[4 replies] Last: Typically you use the <> for things like system header files or STL fi... (by kempofighter)
by Uni616
I have a problem fixing the error " No space left on device : Illegal seek
 
Hello, I'm trying to compile my professor's code but I get the error "No space left on device ./posted: : Illegal seek" Heres the code (its to multiply ...
[1 reply] : This first line looks bogus: [code firstline=52] if ((Cid = shmg... (by PanGalactic)
September 2010 Pages: 12
  Archived months: [aug2010] [oct2010]

This is an archived page. To post a new message, go to the current page.