重新排序包括导致运行时错误

时间:2014-07-25 11:57:29

标签: c++ linux dll include

我的一个脚本文件(.scnp)包含以下标题,如下所示。

#include <stdio.h>
#include "kel.h"
#include "process.h"
#include "sigtypes.h"

#include "ScriptInterface.h"
#include "../saf/SAF_Scripts.h"

此类头文件包含GDB中的错误

  

&#34;符号查找错误:/xxx/xxxx.so:未定义符号:   _Z16KEL_MEM_AllocateP19KEL_MEM_tPoolHandlej。

之后包含的文件
#include <stdio.h>

#include "ScriptInterface.h"
#include "kel.h"
#include "process.h"
#include "sigtypes.h"

#include "../saf/SAF_Scripts.h"

ScriptInterface.h

extern "C"

{

#include "kel.h"

#include "process.h"

#if defined()

#include "sigtypes.h"

#endif

}

脚本成功运行。可能是什么问题呢?我通过使用&#34; c ++ filt&#34;找到了解决这个问题的负责任的方法。但不知道如何继续前进。请帮忙

0 个答案:

没有答案
相关问题