Pelles C forum

C language => Expert questions => Topic started by: TimoVJL on September 23, 2015, 02:21:46 pm

Title: linker -export:po_strstr=pocrt.strstr problem
Post by: TimoVJL on September 23, 2015, 02:21:46 pm
This example don't work
Code: [Select]
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
char * po_strstr(const char *string1, const char *string2);
#pragma comment(linker, "-export:po_strstr=pocrt.strstr")
BOOL WINAPI _DllMainCRTStartup(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
return 1;
}
gives error
Code: [Select]
POLINK: error: Unresolved external symbol 'strstr'.so that forwander problem still exist :-\