Search:

Type: Posts; User: the_unforgiven; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,726

    [SOLVED] Re: Can't #define ushort

    That's because they're already typedefed in <sys/types.h>

    You're not the only one with this requirement - standard C library has had a lot of lazy users already :p

    I'd rather trust the standard...
  2. [SOLVED] Re: high level guidance for talking to hardware

    No, the OS doesn't enforce any particular format for the data written to/read from the device(s) - it only provides ways to access the device. This is about separation of policy and mechanism - the...
  3. [SOLVED] Re: high level guidance for talking to hardware

    You almost always talk to the hardware using entries under /dev.
    There are no 4 ways that you talk about - the "driver" for the hardware always resides in the kernel - either as a loadable module or...
  4. Replies
    5
    Views
    4,359

    Re: Cannot find arm-linux-gcc

    You could simply try
    CC=arm-uclinuxeabi-gcc make
  5. [SOLVED] Re: about removing duplicate values from python dictionary ?

    You could invert the dict..
    something like:

    inverted = dict()
    for (k, v) in a.iteritems():
    if not inverted.has_key(v):
    inverted[v] = k

    This is to also maintain the first key for...
  6. Replies
    6
    Views
    7,265

    Re: Atmel AVR programming

    You may want to take a look at the Wiring development platform.
  7. Replies
    6
    Views
    951

    Re: gdb: no output of display command

    You most likely have misinterpreted how to use display.

    Here is a simplistic c code (loop.c):


    #include <stdio.h>

    int main()
    {
    int i = 10;
  8. [SOLVED] Re: C preallocating an array to zero not working

    BTW, to keep it more readable, you could've also done:

    letter = i + 'A';
    just so that it's explicitly stated what you're trying to do :)
  9. [SOLVED] Re: C preallocating an array to zero not working

    counts[letter]
    ??

    Your index variable is i - not letter.
    letter runs from 65 (i = 0) .... 91 (i = 26).

    There is no problem with the allocation - it's the printing that's messed up.
  10. Replies
    8
    Views
    443

    Re: Help-Makefile issue

    All versions of make generally have built-in rules (called implicit rules) for most commonly used compilation targets - for various languages that are popular at the time.

    Check this page from the...
  11. Re: Python ImportError for custom C++ module

    Most likely, your libopencv_ml.so is not found in the LD_LIBRARY_PATH for your python process.
    As an experiment to confirm it, you could try the following:

    $...
  12. Replies
    8
    Views
    443

    Re: Help-Makefile issue

    Turns out that I was wrong about '%' :) - it is indeed a wildcard.
    However, found this piece to be quite helpful about vpath understanding:...
  13. Re: How to add .o file in the Linux Kernel

    What I meant was that before compiling the kernel, it needs to be configured for the type of system on which it will run - this is what the various "make config" commands do. For details, check this:...
  14. Replies
    8
    Views
    443

    Re: Help-Makefile issue

    It tells make to create a target "all" that depends on "$(objects)" - i.e. the value of the variable objects that you have defined above. Note, it's a $ and not %.

    So, in other words, it's...
  15. [SOLVED] Re: Getting Where the Mouse Clicks in OpenGL?

    You could use glutMouseFunc() to set the callbacks.

    Here is a GLUT tutorial for mouse events:
    http://programming-technique.blogspot.in/2012/01/glut-tutorial-how-to-detect-mouse-click.html
  16. Re: How to add .o file in the Linux Kernel

    OK, I guess, fakeroot is trying to interpret "CONFIG_TCP_CONG_QUIC=.." as a command - which is wrong.

    Instead, what you could do is edit the .config file.
    At the end of kernel configuration,...
  17. Re: Sending and receiving strings over http via libcurl

    In that case, does it have to follow HTTP?
    Or, simple custom message passing between the two entities will suffice?

    Is it that you're trying to open a socket from windows machine to the linux...
  18. Re: How to add .o file in the Linux Kernel

    Yes, you'd need to modify the Makefile in net/ipv4/.
    In there, just look for tcp_veno.o - how it's getting used.

    More precisely, check these:
    http://lxr.linux.no/linux+*/net/ipv4/Makefile#L46...
  19. Re: Sending and receiving strings over http via libcurl

    Can you be a bit more specific?
    Or post the code that you've tried for your problem?

    Does it need to be done using C/C++?
    Why not just write a perl/php/python script on your linux machine and...
  20. Replies
    6
    Views
    536

    Re: C89 cant run the executable file

    No, the one you highlighted is a linux system filesystem - it's got nothing to do with your application being executable or not. It's actually a virtual filesystem generated by kernel.

    I presume...
  21. Replies
    6
    Views
    536

    Re: C89 cant run the executable file

    Just type "mount" command.
    Typical output will look like:


    proc on /proc type proc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)


    HTH ;)
  22. Replies
    7
    Views
    528

    Re: C++ pointers

    The simplest definition of pointers is they are like normal variables but with the sole purpose of storing addresses of other variables.

    Like CptPicard mentioned, they're essentially an...
  23. Replies
    6
    Views
    536

    Re: C89 cant run the executable file

    The fact that you cannot set the executable permissions on the file points towards you not having write access to the directory - to modify the directory entry. Does the 'chmod +x ..' command return...
  24. Replies
    25
    Views
    1,515

    Re: C++ program crashes

    30M may SOUND a lot, but in terms of memory usage, it entirely depends on what is it that's being stored.

    For example, 30M of long longs (8bytes) amounts to only 240MBytes of memory - which is not...
  25. Replies
    2
    Views
    404

    Re: GDT Protected Mode Programming

    Need to know more than just the code - how are you building it and trying to run it?
    Can you please post your Makefile?
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4