Accessing public class memory from C++ using C

后端 未结 5 524
旧巷少年郎
旧巷少年郎 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 22:57

    You can't do that. Vector class is not the same as a C-like array.

    You must convert it to a regular C array before passing it to CFE function.

    Edit: Apparently my answer is wrong. Check Neil's post.

提交回复
热议问题