Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: Cannot figure out this bug for the life of me!

    In addition to what Vaphell said, two don'ts to keep in mind:

    1. Don't use scanf().
    2. Don't write comments which just paraphrase the code. Code should be commented if and only if its meaning is...
  2. Thread: Learning C

    by Bachstelze
    Replies
    10
    Views
    1,120

    Re: Learning C

    I suppose one has to start somewhere, but be advised that "making your own OS" is a very long shot from where you seem to be now. Being a good programmer is necessary but very very far from...
  3. [SOLVED] Re: unable to get memory map during stack smashing

    Is that what you want to do?


    firas@itsuki ~ % cat test.c
    #include<stdio.h>
    #include <string.h>

    int check_password(char *password){
    int flag = 0;
    char buffer[20];
  4. [SOLVED] Re: unable to get memory map during stack smashing

    What else could it be?
  5. Re: ld wont link when -m32 is specified on 64bit system.

    You need to install the 32-bit versions of those libraries. Try appending :i386 to the package names in apt-get install.
  6. [SOLVED] Re: unable to get memory map during stack smashing

    I have no idea what you mean by that...
  7. Replies
    1
    Views
    526

    Re: EIP is not incrementing

    Hmm, it shouldn't do that, and I can't run the Live CD right now as my laptop's drive seems broken... In any case, as you said the version of Ubuntu in the provided Live CD is very old, so if I were...
  8. [SOLVED] Re: unable to get memory map during stack smashing

    The "memory map" printed is not very useful anyway. Much better is to run the program in gdb and use the examine command.
  9. Re: Map a file directly into memory using C

    If you are running your program on Windows, then you probably need rb indeed. In Linux (or other POSIX-compliant systems), it has no effet (r and rb are equivalent).
  10. Replies
    9
    Views
    531

    [SOLVED] Re: simple c problem

    Looks like Trent woke up on the wrong side of bed this morning. :D What he said is true of course but you can feel free to disregard it for now and continue experimenting with pointers and stuff...
  11. Replies
    9
    Views
    531

    [SOLVED] Re: simple c problem

    array and &array are not the same thing. (This is subtle, on a common system they have the same value, but not the same type.) You want array+6 and not &array+6.
  12. Replies
    12
    Views
    2,697

    Re: Help with Asm in C code (GCC)

    Yes, but not for the reason you are probbly thinking of: it's just completely irrelevant to the problem here.
  13. Replies
    12
    Views
    2,697

    Re: Help with Asm in C code (GCC)

    What is %a supposed to represent?
  14. Replies
    4
    Views
    769

    Re: g++ scons libraries installation

    You want to do


    sudo apt-get install scons libboost-all-dev libsundials-serial-dev subversion libblas-dev liblapack-dev
  15. Replies
    4
    Views
    769

    Re: g++ scons libraries installation

    You very much need to review how to install software. ;)

    (What you want here is probably apt-get.)
  16. Replies
    5
    Views
    377

    [SOLVED] Re: how float variable store in memory

    There is no special storage area in memory for floating-point variables, they are stored in exactly the same way as any other variable.
  17. Replies
    19
    Views
    1,572

    [SOLVED] Re: trouble using sed

    sed is overkill here, use cut (or maybe awk).
  18. Replies
    1
    Views
    524

    Re: Build a binary Deb from a Github clone

    Basically, no. checkinstall is the quick and dirty way, but if it doesn't work I think your only option is to follow the packaging guide.
  19. Replies
    2
    Views
    557

    Re: [C99] A question about malloc()

    Yes... assuming randomnumber >= 2. ;)
  20. [SOLVED] Re: Help getting started in x86 assembly (or x86_64)

    Study this book.

    But to answer your questions...



    See above.
  21. Re: How to make binary compatibile with different distribution

    the easiest way is to link the libraries statically, but you need to be careful about the license terms of the libraries you use (for example if you use a GPL library, then you can't distribute your...
  22. Replies
    2
    Views
    1,397

    Re: ifort: Command not found

    If you know the directory where ifort is located, just doing


    export PATH="$PATH:/that/directory"

    should do the trick. To make it permanent, just add that line at the bottom of your .bashrc.
  23. Replies
    2
    Views
    518

    Re: subprocess call module

    It seems that subprocess.getoutput() takes a string as argument...
  24. [SOLVED] Re: Eclipse /bin/sh: 1: Syntax error: "(" unexpected

    Looks like a bug in Eclipse... As a workaround, try


    sudo dpkg-reconfigure dash

    in a terminal, and choose "No".
  25. Replies
    2
    Views
    632

    Re: SteamOS Source Code

    A lot of bugs worth talking about. You can get a list of 'em here.
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4