C program compiled with cygwin in Windows works, segmentation fault under Linux. Is cygwin GCC 'bad'?

后端 未结 11 2173
半阙折子戏
半阙折子戏 2021-02-19 10:11

For my Programming 102 class we are asked to deliver C code that compiles and runs under Linux. I don\'t have enough spare space on my hard drive to install Linux alongside Wind

11条回答
  •  心在旅途
    2021-02-19 11:12

    Are you making any platform-specific assumptions, like the size of data types, data structure alignment in structs, or endianness?

提交回复
热议问题