* Kernel 2.6 project compilation and GCC attribs??
@ 2005-05-13 7:57 Nauman
2005-05-13 8:19 ` Valdis.Kletnieks
0 siblings, 1 reply; 2+ messages in thread
From: Nauman @ 2005-05-13 7:57 UTC (permalink / raw)
To: linux-kernel
hello,
dudes i m using FC 3 with kdeveloper 3.0 on kernel 2.6.
i have used quiet a few function pointers. but i have been
experiencing frustrating behaviour. there are some places in the code
where functions get called properly and on the other part they just
dont get called.
and on more thing
when i use ( x < y ? 5:10)
with x=1 and y=2
the result i get is x = 10: (
and when i replace this stetement with if else struct i get correct result.
y is this............ should i be coding my project or shoud i be
fixing those compilation bugs ..
what i need to ask is that is there any special gcc attributes which
are need to be specified, because i m using default make file to build
my project procuded by kdevelop's wizard.
whats wrong and where it can be........
i m terribly frustrated what do u guys thinkkkkkk
--
When the going gets tough, The tough gets going...!
Peace ,
Nauman.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Kernel 2.6 project compilation and GCC attribs??
2005-05-13 7:57 Kernel 2.6 project compilation and GCC attribs?? Nauman
@ 2005-05-13 8:19 ` Valdis.Kletnieks
0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks @ 2005-05-13 8:19 UTC (permalink / raw)
To: Nauman; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
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 #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-13 8:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 7:57 Kernel 2.6 project compilation and GCC attribs?? Nauman
2005-05-13 8:19 ` Valdis.Kletnieks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.