If you use the standard C , I mean whithout graphcal statements ( like in VisualC++ for example)
you can get your code from the windows partition and compile it with gcc. Otherwise I think it is not possible. This is not the knoppix problem , but incompability between Win and Unix-like platform.
best regards
bela