Ошибка при создании объектного файла
http://depositfiles.com/files/4151323
Ну и вот в кратце:
LOG:[SIZE="1"]
1>ivintegral.obj : error LNK2028: unresolved token (0A00000D) "void * __stdcall mupCreate(void)" (?mupCreate@@$$FYGPAXXZ) referenced in function "void __clrcall ivintegral::Calc(void)" (?Calc@ivintegral@@$$FYMXXZ)
1>ivintegral.obj : error LNK2019: unresolved external symbol "void * __stdcall mupCreate(void)" (?mupCreate@@$$FYGPAXXZ) referenced in function "void __clrcall ivintegral::Calc(void)" (?Calc@ivintegral@@$$FYMXXZ)[/SIZE]
Создаю:
Код:
hParser = mupCreate();
mupCreate() - импортирую:
Код:
API_EXPORT(muParserHandle_t) mupCreate();
API_EXPORT:
Код:
#ifndef MU_PARSER_DLL_H
#define MU_PARSER_DLL_H
#if defined(_WIN32)
#ifdef MUPARSERLIB_EXPORTS
// #define MU_PARSER_API extern "C" __declspec(dllexport)
#define API_EXPORT(TYPE) extern "C" __declspec(dllexport) TYPE __stdcall
#else
// #define MU_PARSER_API extern __declspec(dllimport)
#define API_EXPORT(TYPE) extern __declspec(dllimport) TYPE __stdcall
#endif
#else
#define MU_PARSER_API /* empty macro */
#endif
#define MU_PARSER_DLL_H
#if defined(_WIN32)
#ifdef MUPARSERLIB_EXPORTS
// #define MU_PARSER_API extern "C" __declspec(dllexport)
#define API_EXPORT(TYPE) extern "C" __declspec(dllexport) TYPE __stdcall
#else
// #define MU_PARSER_API extern __declspec(dllimport)
#define API_EXPORT(TYPE) extern __declspec(dllimport) TYPE __stdcall
#endif
#else
#define MU_PARSER_API /* empty macro */
#endif