当前位置:网站首页>Using Visual Studio
Using Visual Studio
2022-06-25 14:59:00 【qq_ twenty-three million nine hundred and fifty-three thousand 】
1, problem :
MSVCRTD.lib(exe_main.obj) : error LNK2019: Unresolved external symbols main, The sign is in the function “int __cdecl invoke_main(void)” ([email protected]@YAHXZ) Cited in
resolvent :
To configure -> routine -> Configuration type Change to " Dynamic library dll”
2, problem :
error LNK2038: detected “RuntimeLibrary” Mismatches for : value “MDd_DynamicDebug” Mismatch value “MTd_StaticDebug”(Code.obj in )
Question why : Several engineering The runtime settings are different , Set the runtime library to the same
resolvent : Item attribute -> Configuration properties -> C/C++ -> Code generation -> Runtime All settings are the same Multithreaded debugging (/MTd)
3, problem
error LNK2019 Unresolved external symbols public: bool __thiscall CppSQLite3Query::eof(void)xxxxxxxxx
Question why : The included static library is not added to the project
resolvent : Item attribute -> Configuration properties -> The linker -> Input -> Additional dependency -> Fill in the corresponding static library , Such as sqlite_static.lib
4, How to add a reference library path
Item attribute -> Configuration properties -> The linker -> routine -> Additional Library Directory
5, How to reference a static library
Item attribute -> Configuration properties -> The linker -> Input -> Additional dependency -> Fill in the corresponding static library , Such as sqlite_static.lib
6, How to include header files
Item attribute -> Configuration properties ->C/C+±> routine -> Attach include directory
7, If you output the compilation results to other directories
Configuration properties -> routine -> The output directory
边栏推荐
- System Verilog - thread
- Std:: vector minutes
- Stack and queue
- QT loading third-party library basic operation
- 1090.Phone List
- AB string interchange
- System Verilog — interface
- About the problem of kicad stuck in win10 version, version 6 x
- The robot is playing an old DOS based game
- Breakpad usage and DMP analysis
猜你喜欢
搭建极简GB28181 网守和网关服务器,建立AI推理和3d服务场景,然后开源代码(一)
定位position(5种方式)
使用sphinx根据py源文件自动生成API文档
Judging the number of leap years from 1 to N years
2022年广东高考分数线出炉,一个几家欢喜几家愁
Add the resources directory under test in idea
Js- get the mouse coordinates and follow them
Dynamic memory allocation
【Try to Hack】vulnhub DC1
Std:: vector minutes
随机推荐
Character encoding minutes
网上办理股票开户安全吗?
有哪个瞬间让你觉得这个世界出bug了?
JS get the height and width corresponding to the box model (window.getcomputedstyle, dom.getboundingclientrect)
Clipboard tutorial
Disable scrolling in the iPhone web app- Disable scrolling in an iPhone web application?
JS select all exercise
One question per day, a classic simulation question
QT loading third-party library basic operation
QT database connection
Uniapp icon configuration
[deep learning] multi task learning of multiple datasets data sets missing labels
Design and implementation of timer
[HBZ sharing] use of locksupport
从408改考自主命题,211贵州大学考研改考
[Ocean University of China] Data Sharing for retest of initial Examination
Add a string at the input and textarea cursors
【深度学习】多任务学习 多个数据集 数据集漏标
Arithmetic operations and expressions
System Verilog - thread