Will writing C in both Windows and Linux cause compiling problems? -
i work 2 different machines. 1 windows , other linux. if alternately work on same project switch between both oses, run compiling errors? inquire because maybe there standards supported 1 not other.
that question pretty broad 1 , depends, strictly speaking, on tool chain. if utilize same tool chain (e.g. gcc/mingw or clang), you'd minimizing chance class of errors. if utilize visual studio on windows , gcc or clang on linux side, you'd run more issues lone because of headers differ. 1 time programme leaves realm of strict ansi c (c89) you'll on own.
however, if aren't careful may run lot of other more profane errors, such compiler on linux choking on line endings if didn't tell editor on windows side utilize these.
ah, , maintain in mind if want cross-compile, gcc may best selection , hence first part mentioned in reply becomes moot point. gcc proven selection on both ends. , given question it's unlikely trying write kernel mode driver - fundamentally different.
linux windows cross-compiling
No comments:
Post a Comment