Issue with OpenCV 3.10 installation on Windows 7 - c++

I'm total begginer in Cmake and I don't know where I have to put code. My problem is:
CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
I'm following the instructions here https://www.learnopencv.com/install-opencv3-on-windows/
and found the answer here:
http://answers.opencv.org/question/165060/opencv-32-install-problems-in-windows10-64-bit-vs2017/
I need to add line in Cmake file but I don't know where to add it.
cmake -DENABLE_PRECOMPILED_HEADERS=OFF
If I add it here https://imgur.com/a/QdO7ucX it shows me error: CMake Error at
CMakeLists.txt:12:
Parse error. Expected a command name, got left paren with text "(".
this is my cmake file:
https://drive.google.com/open?id=1rhT_Sl2XH-ejI_tDBfSIbl2304huDq3n
Using Visual Studio 2013, OpenCV 3.10 Cmake 3.12
Can anyone help me?
edited:
1>------ Build started: Project: ConsoleApplication14, Configuration: Release x64 ------
1>Source.obj : error LNK2001: unresolved external symbol "public: virtual double __cdecl cv::VideoCapture::get(int)const " (?get#VideoCapture#cv##UEBANH#Z)
1>Source.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl cv::VideoCapture::isOpened(void)const " (?isOpened#VideoCapture#cv##UEBA_NXZ)
1>Source.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl cv::VideoCapture::~VideoCapture(void)" (??1VideoCapture#cv##UEAA#XZ)
1>Source.obj : error LNK2001: unresolved external symbol "public: __cdecl cv::VideoCapture::VideoCapture(int)" (??0VideoCapture#cv##QEAA#H#Z)
1>Source.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl cv::VideoWriter::write(class cv::Mat const &)" (?write#VideoWriter#cv##UEAAXAEBVMat#2##Z)
1>Source.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl cv::VideoWriter::~VideoWriter(void)" (??1VideoWriter#cv##UEAA#XZ)
1>Source.obj : error LNK2001: unresolved external symbol "public: __cdecl cv::VideoWriter::VideoWriter(class cv::String const &,int,double,class cv::Size_<int>,bool)" (??0VideoWriter#cv##QEAA#AEBVString#1#HNV?$Size_#H#1#_N#Z)
1>c:\users\vartotojas\documents\visual studio 2013\Projects\ConsoleApplication14\x64\Release\ConsoleApplication14.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
errors with opencv_videoio300.lib:
1>------ Build started: Project: ConsoleApplication14, Configuration: Release x64 ------
1> Source.cpp
1>Source.cpp(15): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>Source.cpp(16): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol ICOpen
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol ICClose
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol ICSendMessage
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol ICDecompress
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIFileInit
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIFileRelease
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIFileOpenA
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIFileGetStream
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIFileCreateStreamA
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamRelease
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamInfoA
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamSetFormat
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamWrite
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamGetFrameOpen
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamGetFrame
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIStreamGetFrameClose
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVIMakeCompressedStream
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol AVISaveOptions
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol capCreateCaptureWindowA
1>opencv_videoio300.lib(cap_vfw.obj) : error LNK2001: unresolved external symbol capGetDriverDescriptionA
1>c:\users\vartotojas\documents\visual studio 2013\Projects\ConsoleApplication14\x64\Release\ConsoleApplication14.exe : fatal error LNK1120: 20 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Related

Error Calling dmumps_c() and zmumps_c() for MUMPS 5.5.1.5

I m using MUMPS 5.5.1.5 compiled with CMake 3.24.2 and Intel one Api on Windows .
After generating and Building the projects .
I Had called dmumps_c() and zmumps_c() from mumps libraries .
Errors appeared ::
DirectMumps.obj : error LNK2001: unresolved external symbol "void __cdecl _com_issue_error(long)" (?_com_issue_error##YAXJ#Z)
1>DirectMumps.obj : error LNK2001: unresolved external symbol "char * __cdecl _com_util::ConvertBSTRToString(wchar_t *)" (?ConvertBSTRToString#_com_util##YAPEADPEA_W#Z)
1>zmumps.lib(mumps_c.obj) : error LNK2001: unresolved external symbol ZMUMPS_SET_TMP_PTR
1>zmumps.lib(mumps_c.obj) : error LNK2001: unresolved external symbol ZMUMPS_F77
1>dmumps.lib(mumps_c.obj) : error LNK2001: unresolved external symbol DMUMPS_SET_TMP_PTR
1>dmumps.lib(mumps_c.obj) : error LNK2001: unresolved external symbol DMUMPS_F77
Please Any help.

Compiling in Debug configuration works fine, but Release gives link errors

I'm using GLFW (glfw3.lib, not glfw3dll.lib) and GLAD (glad.c) with Visual Studio 2017. Compiling in Debug configuration works fine, while Release builds throw out strange linker errors. These are "unresolved external symbols":
1>glad.obj : error LNK2001: unresolved external symbol __security_check_cookie
1>glad.obj : error LNK2001: unresolved external symbol __imp_realloc
1>glad.obj : error LNK2001: unresolved external symbol __imp_strncmp
1>glad.obj : error LNK2001: unresolved external symbol __imp_free
1>glad.obj : error LNK2001: unresolved external symbol strstr
1>glad.obj : error LNK2001: unresolved external symbol __imp___stdio_common_vsscanf
1>glad.obj : error LNK2001: unresolved external symbol __imp_malloc
1>Game.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
1>Game.obj : error LNK2001: unresolved external symbol glfwSwapBuffers
1>Game.obj : error LNK2001: unresolved external symbol __imp_exit
1>Game.obj : error LNK2001: unresolved external symbol glfwGetKey
1>Game.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned __int64)" (??2#YAPEAX_K#Z)
1>Game.obj : error LNK2001: unresolved external symbol glfwTerminate
1>Game.obj : error LNK2001: unresolved external symbol glfwPollEvents
1>Game.obj : error LNK2001: unresolved external symbol glfwInit
1>Game.obj : error LNK2001: unresolved external symbol glfwSetWindowShouldClose
1>Game.obj : error LNK2001: unresolved external symbol glfwCreateWindow
1>Game.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3#YAXPEAX_K#Z)
1>Game.obj : error LNK2001: unresolved external symbol glfwWindowHint
1>Game.obj : error LNK2001: unresolved external symbol glfwMakeContextCurrent
1>Game.obj : error LNK2001: unresolved external symbol glfwSetWindowTitle
1>Game.obj : error LNK2001: unresolved external symbol glfwGetProcAddress
1>Game.obj : error LNK2001: unresolved external symbol __std_terminate
1>Game.obj : error LNK2001: unresolved external symbol glfwWindowShouldClose
1>Game.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter_noinfo_noreturn
1>Game.obj : error LNK2001: unresolved external symbol __imp_getenv
1>LINK : error LNK2001: unresolved external symbol mainCRTStartup
1>C:\Users\User\Documents\Visual Studio Solutions\Order of the Stone\Order of the Stone\x64\Release\Order of the Stone.exe : fatal error LNK1120: 27 unresolved externals
Runtime library option is "Multi-threaded DLL" ("Multi-threaded Debug DLL" for Debug). I'm using the precompiled Windows GLFW binaries. Windows SDK is Windows 10 SDK.
Any help is appreciated.
EDIT
I've checked the include directory for release, turns out it was for the wrong architecture (32 bit instead of 64 bit). But now it gives an another list of unresolved externals:
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(wgl_context.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glad.obj : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol __security_check_cookie
1>glad.obj : error LNK2001: unresolved external symbol __imp_realloc
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __imp_realloc
1>glad.obj : error LNK2001: unresolved external symbol __imp_strncmp
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __imp_strncmp
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __imp_strncmp
1>glfw3.lib(vulkan.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(wgl_context.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glad.obj : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(input.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __imp_free
1>glad.obj : error LNK2001: unresolved external symbol strstr
1>glad.obj : error LNK2001: unresolved external symbol __imp___stdio_common_vsscanf
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __imp___stdio_common_vsscanf
1>glad.obj : error LNK2001: unresolved external symbol __imp_malloc
1>Game.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
1>Game.obj : error LNK2001: unresolved external symbol __imp_exit
1>Game.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned __int64)" (??2#YAPEAX_K#Z)
1>Game.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3#YAXPEAX_K#Z)
1>Game.obj : error LNK2001: unresolved external symbol __std_terminate
1>Game.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter_noinfo_noreturn
1>Game.obj : error LNK2001: unresolved external symbol __imp_getenv
1>LINK : error LNK2001: unresolved external symbol mainCRTStartup
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __imp_strstr
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __imp_strstr
1>glfw3.lib(wgl_context.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>glfw3.lib(wgl_context.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(context.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __security_cookie
1>glfw3.lib(wgl_context.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(egl_context.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(vulkan.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(input.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __imp_calloc
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol _fltused
1>glfw3.lib(input.c.obj) : error LNK2001: unresolved external symbol _fltused
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol _fltused
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol _fltused
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol _fltused
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol __imp___stdio_common_vsprintf
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol __chkstk
1>glfw3.lib(win32_init.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(win32_monitor.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(init.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(window.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol memset
1>glfw3.lib(win32_window.c.obj) : error LNK2001: unresolved external symbol __imp__strdup
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __imp__strdup
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __imp__strdup
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol __imp_qsort
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol __imp_qsort
1>glfw3.lib(win32_joystick.c.obj) : error LNK2001: unresolved external symbol sqrt
1>glfw3.lib(monitor.c.obj) : error LNK2001: unresolved external symbol pow
1>glfw3.lib(vulkan.c.obj) : error LNK2001: unresolved external symbol strcmp
1>C:\Users\User\Documents\Visual Studio Solutions\Order of the Stone\Order of the Stone\x64\Release\Order of the Stone.exe : fatal error LNK1120: 28 unresolved externals
Note that 32 bit Release works fine, it's 64 bit Release build that is having these weird linker errors.
Since 64-bit GLFW prebuilt Windows binary is Debug for some reason, it wasn't able to link, since my app was in Release, not providing necessary debug definitions. The solution is either to compile GLFW from source yourself, in a Release configuration, or to not use 64-bit GLFW at all (32-bit binary strangely is Release, since I was able to build my app in x86/Release). However, I'm not able to practically prove this, because I'm not using GLFW anymore, since it didn't properly suit my needs.

Zbar in vs2015 linking issue

I have an issue when trying to use Zbar library in visual studios 2015.
I have installed the library using the ZBar 0.10 Windows installer from the link: http://zbar.sourceforge.net/download.htm.
Then i link the source folder of Zbar into my project by going to:
"Project -> Properties -> C/C++" and added installed zbar folder to "Additional Include Directories".
Apperently it finds the zbar when i include with "#include "zbar.h"" but, when i run i get the errors:
"1>------ Build started: Project: test, Configuration: Release Win32 ------
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_set_data
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_y
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_ref
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_get_symbols
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_set_first_symbol
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_get_data
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_set_userdata
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_create
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_set_config
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_create
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_get_type
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_destroy
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_next
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_size
1>main.obj : error LNK2001: unresolved external symbol _zbar_get_symbol_name
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_set_format
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_set_get_size
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_get_userdata
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_x
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_data_length
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_set_size
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_ref
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_set_ref
1>main.obj : error LNK2001: unresolved external symbol _zbar_scan_image
1>..\..\bin\vs2015\test.exe : fatal error LNK1120: 24 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
When i press "Local windows debuggger" aka run the code, it is set to "win32".
I've looked online for help, but nothing i found fixed the problem..
Any help is appreciated!
When you add #include <some_header_file.h> in your source code then you don't actually add the implementation to your program as long as the header file contains only inline functions.
Usually the header files contain an interface description, but little or no implementation.
Your need to add the library/libraries that contain the implementation. Then you link actually the code.

Can't link libcurl on my ongoing project

I've got an project that started as a client program. Later on I decided to implement some client to server communication to make kind of a login system. I developed it in plain HTTP post requests and it worked.
Recently I've updated my server to HTTPS and now the plain HTTP post request doesn't work any more, and since I'm going to transfer sensitive data over the web I decided to implement SSL also on my client. The alternatives I've seen includes Libcurl with OpenSSL/WolfSSL or Boost with OpenSSL. I decided to go on the Libcurl way.
So now, I've tried downloading some precompiled libcurl builds and such and with no success on linking to it, giving me some kind of this error:
1>Attacker.obj : error LNK2001: unresolved external symbol __imp__PostMessageW#16
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__EnableWindow#8
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__GetWindowTextLengthA#4
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__GetOpenFileNameA#4
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__GetClientRect#8
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__SendMessageA#16
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__SetWindowTextA#8
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__GetWindowTextA#12
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__RedrawWindow#16
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__ShowWindow#8
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__SetWindowPos#28
1>GEFunc.obj : error LNK2001: unresolved external symbol __imp__DestroyWindow#4
1>FormVarClass.obj : error LNK2001: unresolved external symbol __imp__CreateSolidBrush#4
1>FormVarClass.obj : error LNK2001: unresolved external symbol __imp__CreatePen#12
1>FormVarClass.obj : error LNK2001: unresolved external symbol __imp__CreateFontW#56
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__SetParent#8
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__MoveWindow#24
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__AttachThreadInput#12
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__GetWindowLongA#8
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__SetWindowLongA#12
1>GameClient.obj : error LNK2001: unresolved external symbol __imp__GetWindowRect#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__EndPaint#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__BeginPaint#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__PostQuitMessage#4
1>GUI.obj : error LNK2001: unresolved external symbol __imp__LoadCursorW#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__LoadIconW#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__TranslateMessage#4
1>GUI.obj : error LNK2001: unresolved external symbol __imp__CreateWindowExA#48
1>GUI.obj : error LNK2001: unresolved external symbol __imp__IsDialogMessageW#8
1>GUI.obj : error LNK2001: unresolved external symbol __imp__DispatchMessageW#4
1>GUI.obj : error LNK2001: unresolved external symbol __imp__RegisterClassExW#4
1>GUI.obj : error LNK2001: unresolved external symbol __imp__CloseWindow#4
1>GUI.obj : error LNK2001: unresolved external symbol __imp__DefWindowProcW#16
1>GUI.obj : error LNK2001: unresolved external symbol __imp__GetMessageW#16
1>Main.obj : error LNK2001: unresolved external symbol __imp__SHGetFolderPathA#20
1>Mem.obj : error LNK2001: unresolved external symbol __imp__EnumWindows#8
1>Mem.obj : error LNK2001: unresolved external symbol __imp__IsWindowVisible#4
1>Mem.obj : error LNK2001: unresolved external symbol __imp__GetWindow#8
1>Mem.obj : error LNK2001: unresolved external symbol __imp__GetWindowThreadProcessId#8
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__InvalidateRect#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__ExtTextOutW#32
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__FillRgn#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__RoundRect#28
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__CombineRgn#16
1>Overrides.obj : error LNK2001: unresolved external symbol enter code here__imp__ScrollWindow#20
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetScrollPos#16
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__DeleteObject#4
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetBkColor#8
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__EnableScrollBar#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetCursor#4
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetBkMode#8
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetTextColor#8
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__GetSysColor#4
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__CreateRectRgn#16
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__CreateRoundRectRgn#24
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__DrawTextA#20
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SendMessageW#16
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__UnionRect#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__FillRect#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__InflateRect#12
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SelectObject#8
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__SetScrollInfo#16
1>Overrides.obj : error LNK2001: unresolved external symbol __imp__GetWindowTextLengthW#4
1>Window.obj : error LNK2001: unresolved external symbol __imp__TrackMouseEvent#4
1>libcurl.lib(strerror.obj) : error LNK2001: unresolved external symbol __imp__strerror
1>libcurl.lib(strerror.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurl.lib(url.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurl.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurl.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurl.lib(strerror.obj) : error LNK2001: unresolved external symbol __imp____sys_nerr
1>libcurl.lib(cookie.obj) : error LNK2001: unresolved external symbol __imp__fgets
1>libcurl.lib(netrc.obj) : error LNK2001: unresolved external symbol __imp__fgets
1>libcurl.lib(cookie.obj) : error LNK2001: unresolved external symbol __imp__fputs
1>libcurl.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(rtsp.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(http_proxy.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(parsedate.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(imap.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(cookie.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(hostip.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(url.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(http.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurl.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(tftp.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(digest.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(ftplistparser.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(vtls.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(url.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(http.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurl.lib(vtls.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurl.lib(url.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurl.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurl.lib(formdata.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurl.lib(warnless.obj) : error LNK2001: unresolved external symbol __imp__read
1>OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp__read
1>libcurl.lib(warnless.obj) : error LNK2001: unresolved external symbol __imp__write
1>OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp__write
1>libcurl.lib(curl_threads.obj) : error LNK2001: unresolved external symbol __imp___beginthreadex
1>libcurl.lib(file.obj) : error LNK2001: unresolved external symbol __imp__close
1>OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp__close
1>libcurl.lib(file.obj) : error LNK2001: unresolved external symbol __imp__open
1>OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol __imp__open
1>libcurl.lib(file.obj) : error LNK2001: unresolved external symbol __imp___fstat64
1>libcurl.lib(smb.obj) : error LNK2001: unresolved external symbol __imp___getpid
1>libcurl.lib(system_win32.obj) : error LNK2001: unresolved external symbol __imp___mbspbrk
1>libcurl.lib(formdata.obj) : error LNK2001: unresolved external symbol __imp__feof
1>libcurl.lib(formdata.obj) : error LNK2001: unresolved external symbol __imp__ferror
1>libcurl.lib(formdata.obj) : error LNK2001: unresolved external symbol __imp___stat64
Then I tried building the Libcurl from myself and downloaded the latest version from their site and built it from scratch, using the "LIB Debug - LIB OpenSSL" build option. Linked to OpenSSL libs and pointed to their include directories, it compiled and built me the libcurl.lib file.
So, in my main project, now I included both the libcurl include dir and the openssl include dir, then I linked both of these corresponding Lib folder so it should be alright.
http://prntscr.com/eg389b.
Then in the linker additional dependencies I've set to "crypt32.lib;ws2_32.lib;wldap32.lib;libeay32.lib;ssleay32.lib;libcurld.lib". This is all the steps I've found that should be done to work, but even then I've been getting the exactly same unresolved external symbol error.
PS: Starting from scratch wouldn't be an option.
PS2: For the sake of portability, I would prefer building my program as himself without the need of external DLLs other than the VC++ redist.
EDIT 1
By now, using the method described here LibCurl - Release Static Lib linking problems I've reduced the number of unresolved external symbols drastically and traced them back to the libcurld.lib, OLDNAMES.lib and MSVCRTD.lib. So only the three of those are appearing and bugging me out.
1>libcurld.lib(strerror.obj) : error LNK2019: unresolved external symbol __imp__strerror referenced in function _Curl_strerror
1>libcurld.lib(curl_gethostname.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurld.lib(strerror.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>libcurld.lib(rand.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(http_proxy.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(ntlm.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(pingpong.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(openssl.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(imap.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(rtsp.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(conncache.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(warnless.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(curl_addrinfo.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(inet_ntop.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(connect.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(http.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(wildcard.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(hostip.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(vtls.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(strerror.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(slist.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(multi.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(asyn-thread.obj) : error LNK2001: unresolved external symbol __imp___wassert
1>libcurld.lib(strerror.obj) : error LNK2019: unresolved external symbol __imp____sys_nerr referenced in function _Curl_strerror
1>libcurld.lib(cookie.obj) : error LNK2019: unresolved external symbol __imp__fgets referenced in function _get_line
1>libcurld.lib(netrc.obj) : error LNK2001: unresolved external symbol __imp__fgets
1>libcurld.lib(cookie.obj) : error LNK2019: unresolved external symbol __imp__fputs referenced in function _cookie_output
1>libcurld.lib(telnet.obj) : error LNK2019: unresolved external symbol __imp____stdio_common_vsscanf referenced in function _sendsuboption
1>libcurld.lib(rtsp.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(http_proxy.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(http.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(parsedate.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(imap.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(cookie.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(hostip.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp____stdio_common_vsscanf
1>libcurld.lib(ftp.obj) : error LNK2019: unresolved external symbol __imp__strstr referenced in function _ftp_statemach_act
1>libcurld.lib(tftp.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(digest.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(ftplistparser.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(vtls.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(http.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>libcurld.lib(vtls.obj) : error LNK2019: unresolved external symbol __imp__fread referenced in function _Curl_pin_peer_pubkey
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurld.lib(formdata.obj) : error LNK2001: unresolved external symbol __imp__fread
1>libcurld.lib(warnless.obj) : error LNK2019: unresolved external symbol __imp__read referenced in function _curlx_read
1>OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp__read
1>libcurld.lib(warnless.obj) : error LNK2019: unresolved external symbol __imp__write referenced in function _curlx_write
1>OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp__write
1>libcurld.lib(curl_threads.obj) : error LNK2019: unresolved external symbol __imp___beginthreadex referenced in function _Curl_thread_create
1>libcurld.lib(file.obj) : error LNK2019: unresolved external symbol __imp__close referenced in function _file_done
1>OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp__close
1>libcurld.lib(file.obj) : error LNK2019: unresolved external symbol __imp__open referenced in function _file_connect
1>OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol __imp__open
1>libcurld.lib(file.obj) : error LNK2019: unresolved external symbol __imp___fstat64 referenced in function _file_do
1>libcurld.lib(smb.obj) : error LNK2019: unresolved external symbol __imp___getpid referenced in function _smb_format_message
1>libcurld.lib(system_win32.obj) : error LNK2019: unresolved external symbol __imp___mbspbrk referenced in function __tcspbrk
1>libcurld.lib(formdata.obj) : error LNK2019: unresolved external symbol __imp__feof referenced in function _Curl_getformdata
1>libcurld.lib(formdata.obj) : error LNK2019: unresolved external symbol __imp__ferror referenced in function _Curl_getformdata
1>libcurld.lib(formdata.obj) : error LNK2019: unresolved external symbol __imp___stat64 referenced in function _AddFormData
1>MSVCRTD.lib(_chandler4gs_.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4
You must change the libcurl compile option to Mtd/Mt.
Can you describe how you built libcurl?
It looks like you are not using the same version of the c library in your project and in libcurl. Are you using the same compiler? Visual Studio calls this the "Platform Toolset". I remember compiling libcurl in the past, but I didn't go the static lib route. It seems to be a problem with a mismatch of the C library. When you try to link this library to another program with a different version of the C library, it becomes ambiguous which functions you are referring to.
I just checked the libcurl bundle from their website. There is a sln project curl-7.53.1\projects\Windows\VC14 that you should open. From there, make sure that you select "LIB Debug - [ssl library choice]" and that you're using the same arch, like 32 bits or 64 bits, in both projects.
I don't think that simply adding a single switch to the compiler is enough.
Something I've just seen on curl website :
As a general rule, building a DLL with static CRT linkage is highly
discouraged, and intermixing CRTs in the same app is something to
avoid at any cost.

Error in Release mode but not in Build mode

I recently made a project using opencv and c++ in visual 2008
When i build the project in Debug mode - i don't face any issues - but when i build it in release mode i get the following errors:
1>test.obj : error LNK2001: unresolved external symbol _cvHaarDetectObjects
1>test.obj : error LNK2001: unresolved external symbol _cvCvtColor
1>test.obj : error LNK2001: unresolved external symbol _cvCreateImage
1>test.obj : error LNK2001: unresolved external symbol _cvDestroyWindow
1>test.obj : error LNK2001: unresolved external symbol _cvWaitKey
1>test.obj : error LNK2001: unresolved external symbol _cvGetSize
1>test.obj : error LNK2001: unresolved external symbol _cvReleaseCapture
1>test.obj : error LNK2001: unresolved external symbol _cvCreateMemStorage
1>test.obj : error LNK2001: unresolved external symbol _cvClone
1>test.obj : error LNK2001: unresolved external symbol _cvNamedWindow
1>test.obj : error LNK2001: unresolved external symbol _cvQueryFrame
1>test.obj : error LNK2001: unresolved external symbol _cvLoad
1>test.obj : error LNK2001: unresolved external symbol _cvRectangle
1>test.obj : error LNK2001: unresolved external symbol _cvCreateCameraCapture
1>test.obj : error LNK2001: unresolved external symbol _cvGetSeqElem
1>test.obj : error LNK2001: unresolved external symbol _cvShowImage
Check Linker->Input->Additional Dependencies settings in the Release configuration ; you have undoubtedly forgotten to include the OpenCV libraries. Just copy-paste them from the Debug configuration, but don't forget to remove the d suffix.
E.g. cv210.lib : Release mode and cv210d.lib : Debug mode.
You are not including the same libraries in your release build that you include in your debug build. "unresolved external symbol" means it cannot find the implementation for a function you are referencing.
This happens when you give Additional Dependencies to Debug mode but not in Release.