Skip to content
Advertisement

Tag: c++

Recursion using main() function [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I am writing a program to calculate factorial using recursion of main() function.

How can I set rpath on gcc binaries during bootstrap?

I am trying to build gcc 4.7.2 using a custom prefix $PREFIX I have built and installed all the prerequisites into my prefix location, and then successfully configured, built and installed gcc. The problem that I now have is that $PREFIX is not in the library search path, and therefore the shared libraries cannot be found. What works, but isn’t

Deleting Linked List Elements

I’m curious what I have done wrong, since my void *DeleteDoneNodes(node * n) doesn’t do anything, no error but no output neighter, so could anyone help me finding the root of my problem thank you. Scenario: cmd line ./s m n m number of nodes in list, n number of workingThreads should delete each nodes with node->value == 1, but

How to play .m4s file given in mpd of MPEG-DASH on player?

I have downloaded the MPDs “http://dash.edgesuite.net/adobe/hdworld_dash/HDWorld.mpd” and all related .m4s files. I tried running it on VLC player. But the format is not recognized by VLC player. I have downloaded this media segment using wget (1 to 14 segments are available) http://dash.edgesuite.net/adobe/hdworld_dash/hdworld_seg_hdworld_0696kbps_ffmpeg.mp4.video_temp2.m4s. Can anybody tell me solution how to run .m4s format file on player? System: Ubuntu 11.10 Answer you

why am i not able to declare sigset_t with std=c99?

If i compile the below program with std=c99, i get an error, but the program compiles fine without the c99 flag. Why? Answer Because sigset_t is not part of <signal.h> in standard C and you requested strict standards compatibility with -std=c99. That is, a strictly standard C program can do: and expect it to work.

Non-greedy repeat in gnu regular expression

I’m writing a network related program in linux. the program is in kernel space and not user space. All I need in this program is a regular expression library that supports all gnu regex library features plus non-greedy repeat. Is there any such library that has those features and also I can compile and use it in kernel space? Answer

Linux C or C++ library to diff and patch strings? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 7 years ago. Improve this question Possible Duplicate: Is there a way to diff files from C++?

Force write of a file to disk

I’m currently implementing a ping/pong buffering scheme to safely write a file to disk. I’m using C++/Boost on a Linux/CentOS machine. Now I’m facing the problem to force the actual write of the file to disk. Is it possible to do so irrespective of all the caching policies of the filesystem (ext3/ext4) / SO custom rules / RAID controller /

Advertisement