When executing the following code I receive LNK2019 errors. I have set the Runtime Library as Multi-threaded (/MT):
// LibCurl.cpp : Defines the entry point for the console application.
#include "stdafx.h"
// errors here solved via C:\Users\homeDir\Documents\Tools\curlpp-0.8.1\include
#include <curlpp/cURLpp.hpp>
#include <curlpp/Options.hpp>
#include <curlpp/Easy.hpp>
#include "curl/curl.h"
#ifdef _DEBUG
#pragma comment(lib, "libcurl_a.lib")
#else
#pragma comment(lib, "libcurl_a.lib")
#endif
int main()
{
curl_global_init(CURL_GLOBAL_DEFAULT);
CURL *curl = curl_easy_init();
if (curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "http://www.dynamsoft.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
curl_global_cleanup();
printf("Press any key to continue\n");
getchar();
curlpp::Cleanup myCleanup;
return 0;
}
Error is as follows:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp__fgets LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(netrc.obj) 1
Error LNK2019 unresolved external symbol "public: __thiscall curlpp::Cleanup::Cleanup(void)" (??0Cleanup#curlpp##QAE#XZ) referenced in function _main LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\LibCurl.obj 1
Error LNK2019 unresolved external symbol "public: __thiscall curlpp::Cleanup::~Cleanup(void)" (??1Cleanup#curlpp##QAE#XZ) referenced in function _main LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\LibCurl.obj 1
Error LNK2019 unresolved external symbol __imp__fgets referenced in function _Curl_cookie_init LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2019 unresolved external symbol __imp__fopen referenced in function _Curl_cookie_init LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(netrc.obj) 1
Error LNK2019 unresolved external symbol __imp__fputs referenced in function _Curl_flush_cookies LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(telnet.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(rtsp.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(imap.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(parsedate.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(hostip.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http_proxy.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(tftp.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(hostip.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(dotdot.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_sasl.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftplistparser.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mprintf.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(rtsp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(connect.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(telnet.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_sspi.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(formdata.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2019 unresolved external symbol __imp__fseek referenced in function _Curl_pin_peer_pubkey LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(formdata.obj) 1
Error LNK2019 unresolved external symbol __imp__ftell referenced in function _Curl_pin_peer_pubkey LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2019 unresolved external symbol __imp__getenv referenced in function _curl_global_sslset LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__getenv LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(getenv.obj) 1
Error LNK2019 unresolved external symbol __imp__fwrite referenced in function _Curl_init_userdefined LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__fwrite LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(sendf.obj) 1
Error LNK2019 unresolved external symbol __imp__read referenced in function _curlx_read LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(warnless.obj) 1
Error LNK2001 unresolved external symbol __imp__read LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(read.obi) 1
Error LNK2019 unresolved external symbol __imp__write referenced in function _curlx_write LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(warnless.obj) 1
Error LNK2001 unresolved external symbol __imp__write LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(write.obi) 1
Error LNK2019 unresolved external symbol __imp___gmtime64 referenced in function _Curl_gmtime LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(parsedate.obj) 1
Error LNK2019 unresolved external symbol __imp__strerror referenced in function _Curl_strerror LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2019 unresolved external symbol __imp____sys_nerr referenced in function _Curl_strerror LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2019 unresolved external symbol __imp___beginthreadex referenced in function _Curl_thread_create LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_threads.obj) 1
Error LNK2019 unresolved external symbol __imp__close referenced in function _file_done LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2001 unresolved external symbol __imp__close LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(close.obi) 1
Error LNK2019 unresolved external symbol __imp__open referenced in function _file_connect LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2001 unresolved external symbol __imp__open LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(open.obi) 1
Error LNK2019 unresolved external symbol __imp___fstat64 referenced in function _file_do LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2019 unresolved external symbol __imp___getpid referenced in function _smb_format_message LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(smb.obj) 1
Error LNK2019 unresolved external symbol __imp__access referenced in function _curl_mime_filedata LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__access LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(access.obi) 1
Error LNK2019 unresolved external symbol __imp___stat64 referenced in function _curl_mime_filedata LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp___open LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(open.obi) 1
Error LNK2001 unresolved external symbol __imp___access LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(access.obi) 1
Error LNK2019 unresolved external symbol __except_handler4_common referenced in function __except_handler4 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\MSVCRT.lib(chandler4gs.obj) 1
Error LNK1120 29 unresolved externals LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\Debug\LibCurl.exe 1
Please refer to Visual Studio 2017 and curlpp library LNK2019 error if you would like to see my configurations for my project.
Related
I was following this OpenGL tutorial on YouTube https://youtu.be/45MIykWJ-C4. but instead of following everything exactly, I tried to setup GLFW using premake. then I tried running with just the glfwInit() and received these errors
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_joystick.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(wgl_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(egl_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(osmesa_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(vulkan.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_window.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(init.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_init.obj) 1
Error LNK2019 unresolved external symbol __imp_strncpy referenced in function glfwWindowHintString OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_joystick.obj) 1
Error LNK2019 unresolved external symbol __imp__wassert referenced in function _glfwCreateContextOSMesa OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(osmesa_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(vulkan.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(wgl_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(egl_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_thread.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_strcspn referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2019 unresolved external symbol __imp_strspn referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2019 unresolved external symbol __imp_realloc referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_realloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_realloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_wcscpy referenced in function createMonitor OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_powf referenced in function glfwSetGamma OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK1120 8 unresolved externals OpenGl_sandbox C:\dev\c++\projects\OpenGL\bin\Debug-windows-x86_64\OpenGl_sandbox\OpenGl_sandbox.exe 1
, and here is the premake code:
workspace "OpenGl"
architecture "x86_64"
startproject "OpenGl"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDirs = {}
IncludeDirs["GLFW"] = "vendor/GLFW/include"
IncludeDirs["glad"] = "vendor/glad/include"
LibsDirs = {}
LibsDirs["GLFW"] = "vendor/GLFW/bin"
project "OpenGl_sandbox"
location "OpenGl_sandbox"
kind "ConsoleApp"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/src/**.c",
"%{prj.name}/res/**.**",
}
includedirs
{
IncludeDirs,
}
libdirs
{
LibsDirs,
}
links
{
"glfw3.lib",
"opengl32.lib"
}
filter "system:windows"
cppdialect "C++latest"
staticruntime "On"
systemversion "latest"
defines
{
}
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "RELEASE"
optimize "On"
filter "configurations:Dist"
defines "DIST"
optimize "On"
can anyone tell me why this happens? I tried following this tutorial before and it work for me perfectly but this time it didn't. I'm guessing this might be a problem with the OpenGL file itself, which causes it not to link properly. thanks!
I have a project in VC++ where I am using libcurl library. Even after adding the library in Additional Dependencies I am facing around 150 unresolved external errors, all majorly for libcurl_a.lib file.
Error -
1>OLDNAMES.lib(open.obi): warning LNK4049: locally defined symbol open imported
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbol imp__feof referenced
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbol imp_access referenced in function Curl_mime_duppart in function _read_part content
1>OLDNAMES.lib(access.obi): error LNK2001: unresolved external symbol imp access
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbolimp_ stat64 referenced in function Curl_nine duppart 1>libcurl_a.lib(strerror.obj): error LNK2019: unresolved external symbolimp_strerror referenced in function Curl strerror
1>libcurl_a.lib(url.obj): error LNK2001: unresolved external symbol imp_strerror
1>1ibcurl_a.lib(telnet.obj): error LNK2001: unresolved external symbol imp_strncpy
1>1ibcurl_a.lib(ftp.obj): error LNK2001: unresolved external symbolimp_strncpy
1>libcurl_alib(curl_sspi.obj): error LNK2001: unresolved external symbolimp_strncpy
1>1ibcurl_s.lib(strerror.obj): error LNK2001: unresolved external symbolimp_strncpy
1>1ibcurl_a.lib(vtis.obj): error LNK2001: unresolved external symbol imp_strncpy 1>1ibcurl_.1ib(url.obj): error LNK2001: unresolved external symbolimp_strncpy
1>libcurl_a.lib(schannel.obj) error LNK 2001: unresolved external symbol_imp_strncpy
1>libcuri_a.lip(strerror.obj) : error LNK2019: unresolved external symbol imp sys_nerr referenced in function Curi strerror
1>libcurl_a.lib(warnless.obj): error LNK2019: unresolved external symbol 1 OLDNAMES1ib(read.obi): error LNK2001: unresolved external symbolimp_read imp_read referenced in function curl_read
111bcurt a.lib/warmless.obj) error LNK2019: unresolved external symbol_imp_write referenced in function curl, weite
1 OLDNAMES-110(write.obi): error LNK2001: unresolved external symbolimp_write
I have solved this problem by building the library with RTLIBCFG=static option.
I am trying to build Vivek's Virtual Camera on Windows 10.
For that I need to have Win7Samples/multimedia/directshow/baseclasses
I have downloaded baseclasses and built it using Visual Studio 2019.
Now I am ready to build Virtual camera filter. I followed few requisite steps
git clone https://github.com/roman380/tmhare.mvps.org-vcam
cd tmhare.mvps.org-vcam\Filters
Then I tried to open Filters.dsp in Visual Studio 2019 which asked me to do one-way upgrade
Added C:\Users\alokm\tmp\Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\baseclasses in Additional Include Directories
Added C:\Users\alokm\tmp\Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\baseclasses\Debug to Addition Library Directories
After all these steps I tried to build by hitting Build >> Build Solution
But I am getting lot of linker errors.
Errors in text format:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(combase.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amvideo.obj) 1
Error LNK2019 unresolved external symbol _memset referenced in function "public: virtual long __thiscall CVCamStream::GetMediaType(int,class CMediaType *)" (?GetMediaType#CVCamStream##UAEJHPAVCMediaType###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2019 unresolved external symbol __imp__rand referenced in function "public: virtual long __thiscall CVCamStream::FillBuffer(struct IMediaSample *)" (?FillBuffer#CVCamStream##UAEJPAUIMediaSample###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxlist.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(combase.obj) 1
Error LNK2019 unresolved external symbol _wcsrchr referenced in function "wchar_t * __cdecl wcsrchr(wchar_t *,wchar_t)" (?wcsrchr##YAPA_WPA_W_W#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol _wcsrchr Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2019 unresolved external symbol __imp____stdio_common_vswprintf referenced in function __vsnwprintf_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllsetup.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2019 unresolved external symbol __imp____stdio_common_vsprintf referenced in function __vsnprintf_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2019 unresolved external symbol _memcpy referenced in function _AMGetWideString#8 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2001 unresolved external symbol __purecall Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol __purecall Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2019 unresolved external symbol __imp___wtoi referenced in function "public: virtual long __stdcall CSource::FindPin(wchar_t const *,struct IPin * *)" (?FindPin#CSource##UAGJPB_WPAPAUIPin###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2019 unresolved external symbol __CrtDbgReport referenced in function __CRT_RTC_INIT Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol __CrtDbgReportW referenced in function __CRT_RTC_INITW Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol __callnewh referenced in function "void * __cdecl operator new(unsigned int)" (??2#YAPAXI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(new_scalar.obj) 1
Error LNK2019 unresolved external symbol _malloc referenced in function "void * __cdecl operator new(unsigned int)" (??2#YAPAXI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(new_scalar.obj) 1
Error LNK2019 unresolved external symbol _strcpy_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure##YAXPAXPBD#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol _strcat_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure##YAXPAXPBD#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol ___stdio_common_vsprintf_s referenced in function __vsprintf_s_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol ___std_exception_copy referenced in function "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception#std##QAE#ABV01##Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol ___std_exception_destroy referenced in function "public: virtual __thiscall std::exception::~exception(void)" (??1exception#std##UAE#XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol __CxxThrowException#8 referenced in function "void __cdecl __scrt_throw_std_bad_alloc(void)" (?__scrt_throw_std_bad_alloc##YAXXZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *)" (??3#YAXPAX#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(delete_scalar.obj) 1
Error LNK2019 unresolved external symbol __wmakepath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __wsplitpath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol _wcscpy_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_GetModuleFileNameW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_GetModuleHandleW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_LoadLibraryExW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol _terminate referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol ___current_exception referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol ___current_exception_context referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol __except_handler4_common referenced in function __except_handler4 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4gs.obj) 1
Error LNK1120 31 unresolved externals Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Bin\VCamD.ax 1
Where I am wrong? How to make this working?
The problem building the project is coming from this:
The project source code has a dependency of DirectShow BaseClasses which is no longer a part of Windows SDK
The project has too many settings diverged from defaults; with current Visual Studio it becomes a problem
I updated the github repository and changed the project settings to make the project build (Visual Studio 2019 Communitty) and run: most of the C++ project settings are reverted and DirectShow BaseClasses are used in the build configuration from github.
Check out README.md there, follow build steps (which require to pull Windows SDK Samples first, and build DirectShow stuff there), have DLLs registered (regsvr32) and finally you will have the filter generating video with random data:
I'm trying to compile tds_fdw for Windows 64bit using Visual Studio Community 2017, but I'm getting the errors below.
The C/C++ Additional Include Directories are:
E:\Downloads\FreeTDS-1.00-x86\freetds-1.00\include
C:\Apps\postgres\pgsql-10.0\include\server\port\win32_msvc
C:\Apps\postgres\pgsql-10.0\include\server\port\win32
C:\Apps\postgres\pgsql-10.0\include
C:\Apps\postgres\pgsql-10.0\include\server
E:\Workspace\git\tds_fdw\include
%(AdditionalIncludeDirectories)
The Linker Input has Additional Dependencies:
C:\Apps\postgres\pgsql-10.0\lib\postgres.lib
What am I missing?
1>------ Rebuild All started: Project: tds_fdw, Configuration: Release x64 ------
1>deparse.c
1>options.c
1>tds_fdw.c
1>Generating Code...
1> Creating library E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.lib and object E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.exp
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbbind referenced in function tdsGetRowCountShowPlanAll
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbclose referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcmd referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcolname referenced in function tdsGetColumnMetadata
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcoltype referenced in function tdsGetColumnMetadata
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbconvert referenced in function tdsConvertToCString
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbiscount referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcount referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdata referenced in function tdsIterateForeignScan
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdatecrack referenced in function tdsDatetimeToDatum
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdatlen referenced in function tdsIterateForeignScan
1>tds_fdw.obj : error LNK2019: unresolved external symbol dberrhandle referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbexit referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbinit referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dblogin referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbloginfree referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbmsghandle referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbnextrow referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbnumcols referenced in function tdsGetRowCountShowPlanAll
1>tds_fdw.obj : error LNK2019: unresolved external symbol tdsdbopen referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbresults referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsqlexec referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbuse referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbwillconvert referenced in function tdsConvertToCString
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsetlname referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsetlversion referenced in function tdsSetupConnection
1>E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.dll : fatal error LNK1120: 26 unresolved externals
1>Done building project "tds_fdw.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Update: files from FreeTDS
freetds-1.00\bin
freetds-1.00\etc
freetds-1.00\include
freetds-1.00\lib
freetds-1.00\README.tests
freetds-1.00\sbin
freetds-1.00\var
freetds-1.00\bin\bsqldb.exe
freetds-1.00\bin\bsqlodbc.exe
freetds-1.00\bin\datacopy.exe
freetds-1.00\bin\defncopy.exe
freetds-1.00\bin\freebcp.exe
freetds-1.00\bin\osql
freetds-1.00\bin\sqsh.exe
freetds-1.00\bin\tsql.exe
freetds-1.00\etc\freetds.conf
freetds-1.00\etc\locales.conf
freetds-1.00\etc\pool.conf
freetds-1.00\include\bkpublic.h
freetds-1.00\include\cspublic.h
freetds-1.00\include\cstypes.h
freetds-1.00\include\ctpublic.h
freetds-1.00\include\odbcss.h
freetds-1.00\include\sqldb.h
freetds-1.00\include\sqlfront.h
freetds-1.00\include\sybdb.h
freetds-1.00\include\syberror.h
freetds-1.00\include\sybfront.h
freetds-1.00\include\tds_sysdep_public.h
freetds-1.00\lib\libct.a
freetds-1.00\lib\libct.la
freetds-1.00\lib\libsybdb.a
freetds-1.00\lib\libsybdb.la
freetds-1.00\lib\libtdsodbc.a
freetds-1.00\lib\libtdsodbc.la
freetds-1.00\lib\pkgconfig
freetds-1.00\lib\pkgconfig\freetds.pc
freetds-1.00\sbin\tdspool.exe
freetds-1.00\sbin\tdssrv.exe
freetds-1.00\var\log
You failed to link to the FreeTDS .lib. You'll also need to ensure the associated .dll is in your PATH or copied to the same directory as the extension you built.
It is having problems during linking what file am i missing?
Visual studio 2010 error output
Error 14 error LNK2001: unresolved external symbol
___umoddi3 C:\Users\Yohannes\Desktop\AES Encryption\libcrypto.a(bn_word.o) Rijndael
Error 11 error LNK2001: unresolved external symbol __alloca C:\Users\Yohannes \Desktop\AES Encryption\libcrypto.a(sha512.o) Rijndael
Error 12 error LNK2001: unresolved external symbol __alloca C:\Users\Yohannes\Desktop\AES Encryption\libcrypto.a(err_prn.o) Rijndael
Error 15 error LNK2019: unresolved external symbol ___udivdi3 referenced in function _fmtint C:\Users\Yohannes\Desktop\AES
Encryption\libcrypto.a(b_print.o) Rijndael
Error 13 error LNK2019: unresolved external symbol ___umoddi3 referenced in function _fmtint C:\Users\Yohannes\Desktop\AES
Encryption\libcrypto.a(b_print.o) Rijndael
Error 10 error LNK2019: unresolved external symbol __alloca referenced in function
_OPENSSL_isservice C:\Users\Yohannes\Desktop\AES Encryption\libcrypto.a(cryptlib.o) Rijndael -
According to : http://aluigi.freeforums.org/post4997.html
link it to libcrypto.a, it's the static library.
if you don't have it:
http://gnuwin32.sourceforge.net/packages/openssl.htm