no 'object' file generated what is this? [

2019-08-04 13:41发布

no 'object' file generated what is this?

I move my c++ code that for QNX, but when I move to VS, I don't know why there is such an error. There is no platform specified code, because I already use Macro to separate them. I search on internet this question , no such solution, just tell me to turn it off. I want to know why it happen. The place it happen in two places:

1, try{.... 2, srand(time(NULL)), even I remove this line, still throw out error.

1条回答
在下西门庆
2楼-- · 2019-08-04 14:15

A lot more information is needed before the underlying problem can be solved, but here's my best guess as to what your current situation is:

It's probable that you have one or more warnings during compilation and the "warnings treated like errors" option (/WX) is on, or you have one or more actual errors. Either way, the compiler therefore is not generating the object file or executable.

查看更多
登录 后发表回答