Re: Kernel 2.6 project compilation and GCC attribs??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 13 May 2005 12:57:03 +0500, Nauman said:

> when i use ( x < y ? 5:10)
> with x=1 and y=2
> the result i get is x = 10: ( 

1) This isn't a kernel problem, this is an introductory C problem.

2) Even if it *were* a kernel problem, you'd have to show us at least
2-3 *complete* lines so we can figure out what the heck you're talking
about.  "When I use" doesn't tell us anything, "I get x = 10" can't happen
because you don't actually assign to x anyplace in that fragment, and so on.

3) Since you're working in userspace, printf() is your debugging friend,
and 'gdb' (and GUI's on top of it like 'ddd') are your other debugging friend. 

Attachment: pgpWfFPANo23i.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux