Search:

Type: Posts; User: coletek

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,205

    static libraries

    Hi,

    I have a libX.a that I've created (from test.c) and put in /usr/lib/

    I've then created another libY.a, that calls functions in libX.a, I've also copied this lib to /usr/lib/

    Now when I...
  2. Ok, that works, but doesn't solve my next...

    Ok, that works, but doesn't solve my next problem:

    I'm wanting to use cmake to create a static library of my project.
    The project (libspam) has the directory structure:
    CMakeLists.txt...
  3. cmake - using header files in higher directories

    Hi,

    Say I have a directory structure:
    lib/dbg/debug.h
    lib/other/other.h
    lib/other/other.c
    tools/program.c

    And other.c has: #include "lib/dbg/debug.h"
  4. Replies
    6
    Views
    1,330

    inheritance and constructors

    Hi,

    Why can't I do the following:



    #include <stdio.h>
    #include <stdlib.h>

    class A {
  5. Replies
    4
    Views
    1,581

    But I have passed it a pointer. Or do you mean...

    But I have passed it a pointer.

    Or do you mean doing?:



    char log_filename[100];
    double *buf = NULL;
    int buf_len;
  6. Replies
    4
    Views
    1,581

    The routine is in another .c file and the calls...

    The routine is in another .c file and the calls to it are in a main() routine set. Except the buf variable is a global variable.

    And yes the buf is set to NULL first. Sorry forgot to add that in...
  7. Replies
    1
    Views
    2,632

    Parallel Port to USB controller and outb()

    Hi guys,

    From what I've tried and read I can't use outb() or inb() to control a parallel port (which connects via usb).

    Any body know how to control a parallel port for systems without a...
  8. Replies
    4
    Views
    1,581

    realloc inside a routine

    I wish to increase the size of an array inside a function, since I don't know the size of the array before I call the function.

    I would think I could do (for example):




    char...
  9. Replies
    0
    Views
    1,016

    Real-time camera logger

    Just thought one of you might be able to give me some advise on coding a good real-time camera logger (i.e. save images with timestamps). FYI I'm using OpenCV to grab frames and save images.

    I've...
  10. Replies
    1
    Views
    2,148

    Solved

    Solved: As I suspected, it was a serial port config issue. I had the strip
    parity bit option set (i.e. options.c_iflag |= (INPCK | ISTRIP)).
  11. Replies
    1
    Views
    2,148

    sending/recving 0xff over RS232 in C

    Hi,

    When I send 0xff over serial, I only recv 0x7f. My write/read type is unsigned char, so I can't see why I'm not recv'ing the MSB. Any ideas?

    Thank you.
  12. Replies
    4
    Views
    2,698

    overhead of virtual functions

    Which of the following options describe the expected overhead for a class that has 5 virtual functions?

    A. Every object of the class holds the address of a link list object that holds the...
  13. Replies
    3
    Views
    3,328

    exception in the destructor

    Which of the following reasons describe why a destructor cannot throw an exception in C++?

    A. The C++ language does not permit it; a throw statement in a destructor will be caught as an error by...
  14. Replies
    0
    Views
    918

    newmat vs boost

    Whats peoples thoughts on newmat vs boost for matrix manipulation.

    I've used newmat before and find it very good. I've also heard boost is good but have never used it as yet. Can boost do...
  15. Replies
    2
    Views
    2,389

    exception handling

    Which of the following statements describe correct methods of handling C++ exceptions?

    A. In a hierarchy of exception classes, the order of handling exceptions can be from the most specific...
  16. Replies
    8
    Views
    1,305

    I've notice g++ is lenient on a few things, any...

    I've notice g++ is lenient on a few things, any idea why that is?
  17. Replies
    1
    Views
    936

    compling issues - const issue

    #include <iostream>

    class TestPrint
    {
    public:

    void Print()
    {
    std::cout << "TestPrint" << std::endl;
    }
  18. Replies
    6
    Views
    6,984

    RTTI for distribution

    Which of the following statements provide a valid reason not to use RTTI for distributed (i.e. networked between different platforms) applications in C++?

    A. RTTI is too slow.
    B. RTTI uses...
  19. Replies
    8
    Views
    1,305

    Of course, now complies with: ...

    Of course, now complies with:



    template<typename T>
    class MyArray
    {
    public:
    MyArray();
    //MyArray(MyArray& copy);
  20. Replies
    8
    Views
    1,305

    Ok, so after fixing the code to: ...

    Ok, so after fixing the code to:



    template<typename T>
    class MyArray
    {
    public:
    MyArray();
    //MyArray(MyArray& copy);
  21. Replies
    8
    Views
    1,305

    Ok, some fix is: MyData(MyArray& x,...

    Ok, some fix is:



    MyData(MyArray<int>& x, MyArray<int>& y);


    should be
  22. Replies
    8
    Views
    1,305

    templates and g++

    For the following code template_eg.cc:



    template<typename T>
    class MyArray
    {
    public:
    MyArray();
    MyArray(MyArray& copy);
  23. Thread: using new

    by coletek
    Replies
    8
    Views
    1,760

    Just found that out now. Thx peoplez.

    Just found that out now. Thx peoplez.
  24. Thread: using new

    by coletek
    Replies
    8
    Views
    1,760

    I'm use to using malloc instead. ...

    I'm use to using malloc instead.

    http://ikmnet.com/

    Nope :( - was not aware of "placement new" until now.
  25. Thread: using new

    by coletek
    Replies
    8
    Views
    1,760

    using new

    How can a C++ developer use the placement new syntax to make new allocate an object of class SomeClass at a particular memory address stored in a pointer type variable named pmem?

    A. new...
Results 1 to 25 of 39
Page 1 of 2 1 2