Accessing public class memory from C++ using C

后端 未结 5 521
旧巷少年郎
旧巷少年郎 2021-01-24 22:27

Greetings Everyone.

I\'m currently writing a multi-language programe in C, C++ and fortran on UNIX, unfortunatly I run into \"Segmentation Error\" when I try and execute

5条回答
  •  深忆病人
    2021-01-24 23:02

    The code that you've posted is correct. Provided that every access to an array element inside of CFE() is within bounds, you shouldn't be getting a segmentation fault. Try running your program under valgrind and see if it reports anything unusual.

提交回复
热议问题