UNIX/Linux Programming - December 2010 (Page 2)

by goldn
undefined reference to (errors) something about my compiler linking
 
I'm new to c++ programming and started to work my way through the book Accelerated C++. When I tried to compile the program from Ch4 which had header files and ...
[4 replies] Last: All of my headers and sources are under the header and source trees in... (by goldn)
Bidirectional pipe
 
I'm trying to implement a wrapper for md5sum (just to see if I can). Basically the idea is that the user types a string into my program, which will then run md5...
[2 replies] Last: [quote=jsmith]You should already have access to C functions that imple... (by chrisname)
by hannes
compile error
 
Hi, Can someone tell me how to solve this problem? The error is generated by g++ on linux(ubuntu). main.o: In function `main': main.cpp:(.text+0x62): u...
[2 replies] Last: Thansk for reply, but i already solved the problem by rerunning qmake... (by hannes)
Ofstream doesn't write to file in inheritance
 
Hi everyone, I am doing a C++ project for school in the UNIX lab that requires inheritance. My main program is calculating linear regression for some plotted po...
[no replies]
How to make a chat between two clients?
 
I have some C code of a server and a client, the client sends a message to server and receive back "Hello" + message. The server can treat more clients using se...
[no replies]
Problem with Mysql++
 
Hello everybody, I've tried to run following mysql++ program and it echoed errors. I've tried this using eclipse, but the same result. Any help to fix thi...
[5 replies] Last: I couldn't build with makefile, but it works with eclipse. In the proj... (by Nebekau)
by asmud
redirecting file IO to nowhere
 
Hi, I have a situation where my existing program prints the output to a file. However, I want to redirect the file IO to nowhere. Ideally, I would like to a...
[3 replies] Last: I don't see why you can't just open "/dev/null" std::ofstream ofs(... (by Galik)
gcc's makefile
 
Hi, Every professional programer,there is a question about makefile.Would please you explain the follwing makefile's command: FFLAGS = -fno-second-underscore...
[5 replies] Last: Yeah,I have knew that "patsubst" and "wildcard" are the makefile's fun... (by wenli wang)
by Kyon
Good IDE for Mac
 
Heya, I'm stuck on deciding what C++ IDE I should install on my brand new iMac. I've checked on Code::Blocks, but it appears that it's still a pre-release on...
[11 replies] Last: Wolf++. Xcode is free and if you register as a developer you can do... (by Albatross)
by sisi
Bus error
 
Hi everyone, I have a GUI project and when I run it and left in idle state for a long time,I get bus error after trying to do anything with it. I've tried t...
[1 reply] : Bus error, passengers dumped. Try valgrind. It detects many s... (by rapidcoder)
Simulate Mouse Click/Movement
 
alright.. so listen, basically i wana make a program that will move the mouse and simulate mouse clicks. (like a macro program for linux) BUT HOW DO I DO THIS...
[4 replies] Last: this looks very useful. thanks for the find! (by bitchesFOSHO)
Hunting down some headers
 
So I have a program I need to run but when I compile it I get some undefined symbol errors. Here they are. {code] Undefined symbol ...
[1 reply] : These headers should be in /usr/include on most Linux boxes. (by kooth)
by GulHK
Makefile steps
 
Could anyone please write to me the simple steps in simple English involved in making Makefile in Linux for C++? Many Thanks
[9 replies] Last: CC=g++ CFLAGS=-c -Wall These are variables so that you can easil... (by closed account z05DSL3A)
by lolo
how i will solution it ???
 
1) Develop c/c++ program that read a file specified by the user, then provides a menu of choices to be done using the specified file as follows: Enter what u...
[no replies]
Figure() : shape('\0')
 
I am wondering exactly what happens when I have: Point::Point(int x,int y,char c) : Shape(x,y) { m_type = c; } What does the ":" do here?? Or what ex...
[1 reply] : it's called contractor initializer is used to pass the incoming parame... (by dnambembe)
Socket Programming
 
String cmd= new String("GET / HTTP/1.0\015\012\015\012"); May I know what does ("GET / HTTP/1.0\015\012\015\012") means?
[3 replies] Last: I think it would be more useful to understand the HTTP protocol instea... (by sohguanh)
by declan
How can I do this?
 
Hi guys. I want to write a script so that I can basically ping, or just send some sort of signal to my friend's computer, so that it will play an awful scream s...
[4 replies] Last: Hahah. Well, so far I have looked at something called netcat (man n... (by declan)
Eclipse c++ How to work and build with existing code
 
Hello folks! I'm a newbie and I've a problem! I've to work with a c++ code and I don't know how to import it and how to compile it on eclips ( I compiled ...
[no replies]
error: no match for 'operator<<'
 
Hi, I need to make a text-base video game for collage. There has to be a class character but I am having an error message: Class_Character.h:36: error: no ma...
[3 replies] Last: @Kyron: thx man, this was the problem, stupid of me to not see this on... (by Toongun)
by majood
getline() and fgets() give Segmentation Fault
 
Hi all, I'm writing a program to read from a stream file, one line at a time, I used getline() and fgets(), both gives a correct result, but they give a "s...
[1 reply] : No, they shouldn't. Can I see the code? (by firedraco)
December 2010 Pages: 123
  Archived months: [nov2010] [jan2011]

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