at the end of the dll-template there is an #endif missing in the header file
// INCLUDE FILE generated by "Pelles C for Windows, version 2.73".
#ifndef _TEST_DLL_H
#define _TEST_DLL_H
#ifdef _TEST_DLL_
#define TEST_DLLAPI __declspec(dllexport)
#else
#define TEST_DLLAPI __declspec(dllimport)
#endif /* _TEST_DLL_ */
#ifndef WINAPI
#define WINAPI __stdcall
#endif
TEST_DLLAPI int WINAPI SampleFunction(int, int);
#endif /* _TEST_DLL_H */ <<<<<missing
i'm using PellesC 3.00.4 (About dialog report)
--tiwag