Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

В нескольких хедерах не хватает "extern C" #558

Open
ac opened this issue Jun 7, 2016 · 0 comments
Open

В нескольких хедерах не хватает "extern C" #558

ac opened this issue Jun 7, 2016 · 0 comments
Assignees

Comments

@ac
Copy link

ac commented Jun 7, 2016

По *.h-файлам разбросаны

if defined(__cplusplus)

extern "C" {

endif /* __cplusplus */

Но в паре мест не хватает, в результате v7_create() и v7_exec() при вызове из *.cpp ищутся по c++-сигнатуре и не находятся, приходится вручную добавлять эти extern C в v7.h или выводить в отдельный *.c-файл с обёрткой результата.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants