Thanks Shakti, that is still relevant. It appears to be a linker error as the modules #including regex.h compile. Anyway I'm trying to just incorporate the missing regex code from OpenBSD as...
Type: Posts; User: CodeBugs
Thanks Shakti, that is still relevant. It appears to be a linker error as the modules #including regex.h compile. Anyway I'm trying to just incorporate the missing regex code from OpenBSD as...
Hello Shakti,
Thanks for your quick reply. I did think they should be part of POSIX but I've just discovered that the Android NDK does give me the regex.h and includes the functions I need....
Hi,
I'm using the Android NDK to compile some C code however during compile time it complains of undefined references to regcomp() and regexec() (Regular expression functions).
The Android NDK...
I won't be working with a bare-bones Linux but one(s) with udev installed which I understand automatically creates nodes in the /dev directory. Unfortunately the link I gave in my original post while...
Specifically, what I am intending to do is have my program search for a USB memory stick. I want my program to search for the memory stick and then query linux for its mount point or where it is in...
Hi,
I'm trying to work out how to work with udev in my programs. I understand that this works in conjunction with sysfs mounting devices in the tree dynamically.
More specifically, I want my...
Yes, it was indeed my iptables that needed adjusting. Oddly though even though packets that are to be rejected are set to DROP, it appears this is reported back to the OS.
From reading a couple of...
Yes that was me.
I am just checking the iptable of my machine now and I see the following:
That highlighted in bold means I cannot send to 'base-address.mcast.net/8 but what is that value ?...
Hello. I'm attempting to understand network programming in particular Multicasting originally with Python but I hit upon a privilege problem when executing my Python scripts. To try and get round the...
Thanks Florian, this is what I needed. Thanks for your help ! :
blitz.hpp:
#include <cstdio>
#include <iostream>
#include <blitz/array.h>
class Test {
public:
I'm trying to use the blitz++ matrix library in my code (Blitz++ Home Page) but am getting frustrated with how to use the blitz templates in my classes. All examples I have seen for this and any...
D'oh !
Thanks Sebastiani
Well I managed to get it to work with the following alterations:
template.h
#include <cstdio>
#include <queue>
#include <deque>
class Test {
public:
OK:
template.h:
//#include <stdio>
#include <queue>
#include <deque>
class Test {
public:
I'm having problems with templates blah blah blah.. lack of understanding.. confusion etc etc.
I want to create a queue object from the Standard Template Library for a type of my own classes. ...
Thanks anon !
I can't remember what it means when there are objects,variables stated between a Classes name and the opening brace. An example of what I mean is shown below (taken from the Qwt code) and emboldened....
Sigh... of course so simple !
And once again Laserlight you have saved me from hours of bashing my head against the wall !
thankyou !
Hello,
I'm experimenting with using void pointers as function parameters but I've hit upon a bit of a problem when I pass in an array to a function which uses such pointers. Here's my code:
...
Hello,
I'm having problems understanding/using function pointers. I'm trying to use a member function of an instantiated class i.e. non-static as a call back function and need to pass a function...
OK.. point taken.. thanks laserlight .. and apologies too !
OK, now I've removed the #include cpp_main.h from the main() file and compiled it.. expecting it to throw a new error i.e. cpp_main not...
If you mean I included if in cpp_main.cpp, then no, cpp_main is a C++ file - and what I mean by this is that the file has the extension .cpp so gcc will interpret that file as a C++ file.
Or do...
OK, well as in my original post, can you explain why this compiles :
//#include "cpp_main.h"
//#include "testclass.h"
//=========================================
// Include the header in...
Hello,
I'm a a pretty new programmer just beginning to play around with C and C++. I use Linux and am compiling with gcc/g++ 4.3.2 however I'm coming across a strange problem that I just can't...