- 153 名前:デフォルトの名無しさん mailto:sage [2007/02/25(日) 18:11:24 ]
- >>151
確認したいのですが、extern "C"をつけるのはC++側の関数へですよね? main.c #include "hogehoge.h" int main(void){ int a=0; func(a); return 0; } hogehoge.cpp #include <vector.h> extern "C" void func(int a){ vector<int> v; } hogehoge.h #ifdef __cplusplus extern "C" { #endif void func(int a); #ifdef __cplusplus } #endif こういう形なんですが・・・。
|

|