Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

ICC Decorating Extern C Functions

Genie-Soft
Beginner
401 Views
My DLL has several C-style exports as follows:

extern "C"
{
	QSS_API void *CreateQSSObject();
	QSS_API void AddRule(void *qss, const qchar *pattern, bool caseSensitive);
	QSS_API void CreateTables(void *qss);
	QSS_API void FindMatches(void *qss, const qchar *haystack, MatchCallback callback, bool breakAsap);
	QSS_API HANDLE GetWaitHandle(void *qss);
	QSS_API void DestroyQSSObject(void *qss);
};

When compiling with ICC 12, these exports are being decorated:

@AddRule@12
@CreateQSSObject@0

and so on and so forth.

This only happened when I enabled IPP & TBB. How can I fix this?

Thanks.
0 Kudos
1 Reply
Genie-Soft
Beginner
401 Views
It was caused by switching to __fastcall
0 Kudos
Reply