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
Type: Posts; User: kroiz
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
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...
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...
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...
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...
No, look at post #6. /:
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....
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...
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...
What level requires hex knowledge? hardware?
(-: I've been programming very successfully for 8 years w/o it.
Who knew that taking 0x11 and shifting it left 8 times would produce 0x1100. Damn hex math...
oh well maybe next job interview....
Wonderful, now it all makes sense.
Thanks a lot.
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.
Thanks Mats for the explanation.
can anyone please help me understand how the output came to be what it is?
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[]={...
http://letmegooglethatforyou.com/?q=dvr+linux
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...
I guess the main thing I don't get, is how this is done with only one mutex.
I came across a solution to the "Single writer Multiple readers Problem" implemented with Boost here.
typedef boost::shared_mutex ReadWriteMutex;
typedef...
I did not find anything useful searching for that in Google.
Thanks I did not try it yet but I believe it will solve my problems, especially the .NETZ solution.
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...
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.
smack myself on the head.
thanks works good now.