UNIX/Linux Programming - April 2014

How do I run this git hub program?
 
Hey guys, there is no make file to run. Do I run eclipse and make a new project? But there is cmake files so I don't know how to implement them with unbuntu...
[6 replies] Last: Got it to work! mathewfok@mathewfok-Satellite-C855:~/Documents/yafic... (by closed account zqMDizwU)
Compiling error try -fPIC
 
Hey guys if you could help me bypass this error and get the program to run. The link is here: http://www.cplusplus.com/forum/general/129923/
[no replies]
Move semantics between an application and shared library
 
Consider the following: // Assume this is compiled to "SomeLibrary.so" extern "C" { std::vector<int>&& action() { return std::move((std::vector<int...
[4 replies] Last: Thanks for the info norm. That was a simple mistake on my part while ... (by closed account 3hM2Nwbp)
by Alby94
getppid() ??
 
The function getppid results not declared though i included the pthread and sys/types libraries... http://it.tinypic.com/r/i4r9g2/8
[2 replies] Last: hmm, both sys/types.h and unistd.h are present... Should be sys\types.... (by icegood)
Segmentation fault (core dumped)
 
Okay so here's my code: #include <iostream> #include <cstdlib> #include <cassert> #include <vector> #include <string> using namespace std; // TODO: m...
[3 replies] Last: never mind. i already solved it :). just added another conditional sta... (by Jezebel)
by Alby94
Threads C++11
 
Why I cant compile this?? http://it.tinypic.com/r/j79894/8
[2 replies] Last: DevC++ hasn't been discontinued as someone picked up development via a... (by NoXzema)
Better way to extract data from string
 
In a C socket program I have created I need to extract data from a string sent from the Windows client. A small example of the string is:- SRC=”<Terminalname...
[1 reply] : i would construct an std::string object from it, and then you can do o... (by Little Bobby Tables)
error in class C++ in codeblocks IDEs GNU compiler
 
My program //Customer.h #include<string> #ifndef CUSTOMER_H #define CUSTOMER_H using namespace std; class Customer { int ID ; string Name , Address ; publ...
[1 reply] : a) please use code tags b) whats the problem c) you have this line in ... (by Little Bobby Tables)
by RyanV
POSIX Semaphores in Linux
 
Hi, I need to make a program that takes as input a series of customers for cashiers. Each customer has an amount of time the system sleeps until they arrive...
[3 replies] Last: With the pids, I saw that your output was "Got alice." for each custom... (by Svnyster)
FATAL ERROR IN NS3
 
please i want to know y the following error is showing in my program after it was successfully built. Waf: Leaving directory `/home/samera/ns-allinone-3.19/ns-...
[no replies]
read string from a text file
 
Hello, i have a text file like this: 123 abc **dddd **ERROR hallo **ERROR 1234567 This is from a calculation. I want to read out the Errors and i did this pr...
[6 replies] Last: I missed this, you really should start another thread for a different ... (by kbw)
Finding file size with file input/output operations
 
Hey people, I want to be able to find file size using file input/output operations "open()" function. Typically, to open a file, we use for example: ifst...
[5 replies] Last: Finding file size with file input/output operations Don't . Check t... (by kbw)
IO map
 
Submit my codes,compile is ok,when i run it ,after input name, segment fault! I found the mistake cause by this statement -scanf("%s",s .name).but i can't fix ...
[1 reply] : The first thing I would do is to check the value of s on line 31. It ... (by kooth)
Simple Recursion problem
 
Ok, so I have this assignment where i have to create a program that takes in input for the length of string and amount of ones and produce an ordered output for...
[1 reply] : I got it figured out guys, but that brings on a different question... ... (by codyjae)
by Matome
warning: control reaches end of non-void function [-Wreturn-type]
 
//File: PrimeChecker.cpp #include <iostream> #include <cmath> using namespace std; bool PrimeChecker (int n) { int i = 2; if (n != 1) { for (; i <= sqrt(n...
[2 replies] Last: Oh....it works now...thank you (by Matome)
Copying the file
 
I try to copy file from one dir to another dir. I know that we have to use cp
[2 replies] Last: Read the manual: man page for the cp command, at the bash prompt : m... (by TheIdeasMan)
Configure TCP/IP printer port through Qt
 
Hi, I want to configure tcp/ip printer port programmatically through Qt. I am doing the same in mfc using mfc functions. Any idea how to do it in qt??
[no replies]
Access Problem
 
Hello, From account I would to connect to my friend UNIX account I dont know how. I have her dir. address. Do I just cd /.... her dir.address? Thanx
[11 replies] Last: yes it work thx (by CodingisFun)
by zolo
using Levmar
 
Hi, I would like to use the levenberg - Marquardt minimization routine in my c++ script. I am not sure how to link the liblevmar.a libraries to the script. H...
[8 replies] Last: I found it thanks (by zolo)
by tition
Small http server c++
 
Hi all, I want to add a small http server to my project. I am looking for the smallest possible **working** C++ code for an http server. My requirements: 1...
[8 replies] Last: Civetweb (based on Mongoose) is a C (with C++ bindings), cross-platfor... (by odin39)
April 2014 Pages: 12
  Archived months: [mar2014] [may2014]

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