Search:

Type: Posts; User: kroiz

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,570

    spankytanky_LDADD = -L/usr/lib -lSDL...

    spankytanky_LDADD = -L/usr/lib -lSDL
    spankytanky_CPPFLAGS =-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

    I had to fix Makefile.am and the Makefile.am in the project directory
    /s/SUBDIR/SUBDIRS
  2. Replies
    3
    Views
    1,570

    That is actually ok. AC_CONFIG_SRCDIR parameter,...

    That is actually ok.
    AC_CONFIG_SRCDIR parameter, is some file that is in the package's source directory; configure checks for this file's existence to make sure that the directory that it is told...
  3. Replies
    3
    Views
    1,570

    (autotools) make does not decent to src

    Hi,
    I have only one small cpp file but I am having hard time building it with autotools.
    Before I started with autotools I built it with:
    g++ main.cpp `sdl-config --cflags --libs`
    and that worked...
  4. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    I could say that you are absolutely right but for...

    I could say that you are absolutely right but for the sake of argument...
    I did not say that hex math, is a subset of math or a superset of math or a different set of math - just that it is math...
  5. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    Yes the code in the first post is wrong, it is...

    Yes the code in the first post is wrong, it is not what the interviewer game me.
    They wanted the print of *plong and *pshort.

    and yes in order to solve it correctly I had to know the size of the...
  6. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    No, look at post #6. /:

    No, look at post #6. /:
  7. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    Yes it is, because if you take a long and you put...

    Yes it is, because if you take a long and you put in every byte, a hex number, only with hex you would get a number that looks like all the hex numbers "concatenated". that is just a property of hex....
  8. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    No, it was a long not a byte and the number for...

    No, it was a long not a byte and the number for the output was hex and would look differently with decimals, and don't forget this is a test without a computer or a calculator - just a pencil and a...
  9. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    that is the easy part, at least for me. I just...

    that is the easy part, at least for me.
    I just did not did not realise that putting 0x11 in the first byte of a short and 0x11 in the second byte produce 0x1111 and that *is* hex math. it does not...
  10. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    What level requires hex knowledge? hardware?

    What level requires hex knowledge? hardware?
  11. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    (-: I've been programming very successfully for 8...

    (-: I've been programming very successfully for 8 years w/o it.
  12. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    Who knew that taking 0x11 and shifting it left 8...

    Who knew that taking 0x11 and shifting it left 8 times would produce 0x1100. Damn hex math...
    oh well maybe next job interview....
  13. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    Wonderful, now it all makes sense. Thanks a lot.

    Wonderful, now it all makes sense.
    Thanks a lot.
  14. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    I understand the size of the long and short but I...

    I understand the size of the long and short but I don't understand how making them point to the char array cause that output.
  15. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    Thanks Mats for the explanation. can anyone...

    Thanks Mats for the explanation.
    can anyone please help me understand how the output came to be what it is?
  16. Thread: hex math

    by kroiz
    Replies
    25
    Views
    6,465

    hex math

    Hi
    I was presented with the following in a job interview and was asked to provide the output.
    Please help me learn from this.



    int main()
    {
    char buff[]={...
  17. Thread: DVR application

    by kroiz
    Replies
    10
    Views
    3,735

    http://letmegooglethatforyou.com/?q=dvr+linux

    http://letmegooglethatforyou.com/?q=dvr+linux
  18. Ok, I think I understand now, but if I understand...

    Ok, I think I understand now, but if I understand correctly this solution can lead to writer starvation, right?
    I have seen solutions to the "single writer multiple reader problem" that used a...
  19. I guess the main thing I don't get, is how this...

    I guess the main thing I don't get, is how this is done with only one mutex.
  20. Boost Syncronization and Single writer Multiple readers

    I came across a solution to the "Single writer Multiple readers Problem" implemented with Boost here.



    typedef boost::shared_mutex ReadWriteMutex;
    typedef...
  21. Replies
    4
    Views
    1,805

    I did not find anything useful searching for that...

    I did not find anything useful searching for that in Google.
  22. Replies
    4
    Views
    1,805

    Thanks I did not try it yet but I believe it will...

    Thanks I did not try it yet but I believe it will solve my problems, especially the .NETZ solution.
  23. Replies
    4
    Views
    1,805

    Statically linked Class Library

    HI,
    what can one use to have a statically linked library?

    I found something called Class Library but it seems to create a dll.

    In my solution I have several projects that I want to share some...
  24. Replies
    7
    Views
    4,853

    I see what you mean but it wont do for what I...

    I see what you mean but it wont do for what I need.
    I just need to read from the file and I create it so I wont have to worry if it exist.
    I am only writing to the file later.
  25. Replies
    7
    Views
    4,853

    smack myself on the head. thanks works good now.

    smack myself on the head.
    thanks works good now.
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4