Home > Software engineering >  PELord import DLL failed API is not found
PELord import DLL failed API is not found

Time:02-24

Rookie help haven't a clue..
 
//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:

reference 1st floor zgl7903 response:
try extern "C" qualified
# define WANDERER_API extern "C" __declspec (dllexport)

Depends to see
. The same.
  • Related