Dec 11, 2018 03:37 AM
(This post was last modified: Dec 11, 2018 11:05 AM by SIM-1866423.)
Using visual studio 2017, when creating exe its also generating libcurl and some other dlls into folder.Possible to insert every dll file into exe ?
Visual Studio 2017 -
Codes works perfectly with "Multi-threaded Debug DLL (/MDd)" option.
But when trying to make one "Multi-threaded (/MT)" getting these errors;
I want to put everything into one executable file on every page google says you need to compile it with "Multi-threaded (/MT)" but that damn fuck not let me to do.Tried everything on google nothing fix problem .. So ANYONE ? 🤮 🤮 🤮 🤮 🤮 🤮
PHP Code
<?php
#include "stdafx.h"
#include <string>
#include <iostream>
#include <boost/filesystem.hpp>
#include "boost/algorithm/string.hpp"
#include <cpr/cpr.h>
#include <fstream>
#include <vector>
#include <random>
//this func definitely working
std::string random_string(std::string keys, int length)
{
std::string str(keys);
std::random_device rd;
std::mt19937 generator(rd());
std::shuffle(str.begin(), str.end(), generator);
return str.substr(0, length);
}
int main() {
std::cout << "test";
}
Visual Studio 2017 -
Codes works perfectly with "Multi-threaded Debug DLL (/MDd)" option.
But when trying to make one "Multi-threaded (/MT)" getting these errors;
PHP Code
<?php
1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Test.cpp
1>libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>Test.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(xonce.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(syserror.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol __free_dbg
1>libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol __malloc_dbg
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype
1>libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol __calloc_dbg
1>libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol __calloc_dbg
1>libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol __calloc_dbg
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __wcsdup_dbg referenced in function __Getctype
1>libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol __wcsdup_dbg
1>libcpmtd.lib(locale.obj) : error LNK2019: unresolved external symbol __realloc_dbg referenced in function "private: static void __cdecl std::locale::_Locimp::_Locimp_Addfac(class std::locale::_Locimp *,class std::locale::facet *,unsigned int)" (?_Locimp_Addfac@_Locimp@locale@std@@CAXPAV123@PAVfacet@23@I@Z)
1>C:\Users\p\source\repos\Test\Debug\Test.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project "Test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I want to put everything into one executable file on every page google says you need to compile it with "Multi-threaded (/MT)" but that damn fuck not let me to do.Tried everything on google nothing fix problem .. So ANYONE ? 🤮 🤮 🤮 🤮 🤮 🤮

