//Wanderer. H
# pragma once
# ifdef WANDERER_EXPORTS
# define WANDERER_API __declspec (dllexport)
# the else
# define WANDERER_API __declspec (dllimport)
# endif
//declare to export function
WANDERER_API int Wanderer (void);
//Wanderer. CPP
H # include "Wanderer."
WANDERER_API int Wanderer (void) {return 0; }
When using PELord:
CodePudding user response:
Try the extern "C" qualified# define WANDERER_API extern "C" __declspec (dllexport)
Depends to see
CodePudding user response: