Simple C inline linker error

前端 未结 3 549
轮回少年
轮回少年 2020-12-06 12:28

simple problem:

given the following program:

#include 

inline void addEmUp(int a, int b, int * result)
{
    if (result) {
        *r         


        
3条回答
  •  半阙折子戏
    2020-12-06 12:59

    Try adding the "-O" option to your compiler command. Inlining is turned on only when optimization is enabled.

提交回复
热议问题