This question regards the setup in UEStudio for linking user created DLL to an active exe project.
Assuming the DLL is compiled and built correctly, I am starting a blank console exe project and wish to link my DLL to this newly created exe project.
My first step is go to the Set Compiler Options ..., then I go down to the linker options, and under the library = option, I added the DLL file name using the switch -I as in -ICustomDLL at the end, i.e. -lstdc++ -lkernel32 -user32 -lgdi32 -lcomctl32 -lcomdlg32 -ITestDLL
Just to make things very simple, I also copied the TestDLL file into my active exe project directory under debug or release (depending on build preference) to isolate this linking issue. I also added the #include "TestDLL.h" header statement to my main exe source file, and I also copied the DLL header file into my active exe directory to isolate this single issue.
However, when I attempted to call the function (std::cout << fnTestDLL();) in the active exe project file, I got the message:
Something is wrong in the settings, please help .
Thanks.
Assuming the DLL is compiled and built correctly, I am starting a blank console exe project and wish to link my DLL to this newly created exe project.
My first step is go to the Set Compiler Options ..., then I go down to the linker options, and under the library = option, I added the DLL file name using the switch -I as in -ICustomDLL at the end, i.e. -lstdc++ -lkernel32 -user32 -lgdi32 -lcomctl32 -lcomdlg32 -ITestDLL
Just to make things very simple, I also copied the TestDLL file into my active exe project directory under debug or release (depending on build preference) to isolate this linking issue. I also added the #include "TestDLL.h" header statement to my main exe source file, and I also copied the DLL header file into my active exe directory to isolate this single issue.
However, when I attempted to call the function (std::cout << fnTestDLL();) in the active exe project file, I got the message:
Code: Select all
undefined reference to `_imp__z9fnFunctionv`
Thanks.