Solaris 10 CC Preprocessor bug causes undefined symbols

我怕爱的太早我们不能终老 提交于 2019-12-01 21:39:53

Try using CC -E in place of CC -P. When I do this thenm(1) listings are the same and the object files only differ by a few bytes (given that I can see the names of the *.c and *.i files in the *.o this difference is not surprising).

The man page doesn't really explain the difference between the two flags but does stress C++ for -E so I wonder if -P was intended to be C only.

If you're trying to work out what the direct method really entails, then this might prove enlightening:

truss -f -a -texec CC myFile.C

The direct compilation method doesn't call CC -P or CC -E but instead invokes ccfe with a whole raft of flags (and then fbe then ld...).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!