Including C Code in C++

后端 未结 2 1987
慢半拍i
慢半拍i 2021-02-13 03:12

I\'m trying to include C code into a simple C++ program but I ran into an unexpected problem - when I try to compile the program g++ gives the following error:

/         


        
2条回答
  •  你的背包
    2021-02-13 03:35

    It works just as expected. Make sure you haven't accidentally compiled sample1.c with g++.

提交回复
热议问题