Search:

Type: Posts; User: CodeBugs

Search: Search took 0.01 seconds.

  1. Thanks Shakti, that is still relevant. It appears...

    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...
  2. Hello Shakti, Thanks for your quick reply. I...

    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....
  3. Regexec() & regcomp(). In which library do they reside?

    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...
  4. Replies
    4
    Views
    3,322

    I won't be working with a bare-bones Linux but...

    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...
  5. Replies
    4
    Views
    3,322

    Specifically, what I am intending to do is have...

    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...
  6. Replies
    4
    Views
    3,322

    Udev & Interacting With Devices

    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...
  7. Replies
    4
    Views
    10,465

    Yes, it was indeed my iptables that needed...

    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...
  8. Replies
    4
    Views
    10,465

    Yes that was me. I am just checking the...

    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 ?...
  9. Replies
    4
    Views
    10,465

    Multicast Problem - Operation Not Permitted

    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...
  10. Thanks Florian, this is what I needed. Thanks for...

    Thanks Florian, this is what I needed. Thanks for your help ! :

    blitz.hpp:

    #include <cstdio>
    #include <iostream>
    #include <blitz/array.h>

    class Test {
    public:
  11. How do I use a template in a class NOT in the main() method?

    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...
  12. Replies
    8
    Views
    12,739

    D'oh ! Thanks Sebastiani

    D'oh !

    Thanks Sebastiani
  13. Replies
    8
    Views
    12,739

    Well I managed to get it to work with the...

    Well I managed to get it to work with the following alterations:

    template.h

    #include <cstdio>
    #include <queue>
    #include <deque>

    class Test {
    public:
  14. Replies
    8
    Views
    12,739

    OK: template.h: //#include ...

    OK:

    template.h:

    //#include <stdio>
    #include <queue>
    #include <deque>

    class Test {
    public:
  15. Replies
    8
    Views
    12,739

    Can I dynamically allocate std::queue?

    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. ...
  16. Thanks anon !

    Thanks anon !
  17. Class definition, the meaning of additional parameters

    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....
  18. Sigh... of course so simple ! And once again...

    Sigh... of course so simple !

    And once again Laserlight you have saved me from hours of bashing my head against the wall !

    thankyou !
  19. Void* in Function Prototype & Passing In an Array - Question

    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:

    ...
  20. Replies
    2
    Views
    1,610

    C++ Function Pointer Problems

    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...
  21. Replies
    11
    Views
    17,994

    OK.. point taken.. thanks laserlight .. and...

    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...
  22. Replies
    11
    Views
    17,994

    If you mean I included if in cpp_main.cpp, then...

    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...
  23. Replies
    11
    Views
    17,994

    OK, well as in my original post, can you explain...

    OK, well as in my original post, can you explain why this compiles :


    //#include "cpp_main.h"
    //#include "testclass.h"
    //=========================================
    // Include the header in...
  24. Replies
    11
    Views
    17,994

    Extern "C" problem

    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...
Results 1 to 24 of 24