This has been nagging me for quite a bit now, the GPL is a free license and the way I see it

GPL CODE + YOUR CODE = MUST BE GPL
and
GPL = FREE

so my question is: Can I make a commercial app and sell it for profit if it contains GPL code as long as I provide the GPL bits for free Is that legal?

and scenario two: If I make a library that interacts with GPL code and I give it away free (open source), can the end user use my library for making apps that he/she can sell for profit legally?

sorry if this doesnt make too much sense, its late and etc... But just wondering if I have to avoid all gpl code, because that might be a little tricky...

cheers,
code_glitch - The recently promoted guy.