extern "C" __declspec(dllexport)에 대해

hiluciano의 이미지

extern "C" __declspec(dllexport)라는 구문이

MS 컴파일러로 윈도우 프로그램 만들 때만 인식되나요?
C++ Builder나 리눅스에서 gcc로 컴파일할 때는 에러나나요?

hys545의 이미지

즐린

__declspec
이게 그냥
#define __declspec
으로 되어있으면 무시됩니다.

즐린