当前位置:网站首页>解决错误: LNK2019 无法解析的外部符号
解决错误: LNK2019 无法解析的外部符号
2022-06-24 06:47:00 【代码骑士】
执行代码:
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
int main() {
glfwInit();//初始化GLFW
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);//设置主版本号
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);//设置次版本号
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);//设置核心模式
std::cout << "hello world!" << std::endl;
return 0;
}当发生如下报错时

打开项目属性查看vc++目录,添加所需链接库的路径

修改平台版本重新配置:



运行成功:

边栏推荐
- 使用 kubeconfig 文件组织集群访问
- Baidu map, coordinate inversion, picking coordinate position
- 《canvas》之第1章 canvas概述
- Super fast reading in OI
- pair类备注
- 线程的支持
- Bit operation
- 开放合作,共赢未来 | 福昕鲲鹏加入金兰组织
- Blue Bridge Cup seven segment code (dfs/ shape pressing + parallel search)
- Explain the input attribute in PHP (hide the read-only restriction)
猜你喜欢
![LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路](/img/16/011ba3aef1315c39526daac7e3ec89.png)
LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路

RDD的执行原理

GPU is not used when the code is running

OpenGauss数据库在 CentOS 上的实践,配置篇

Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its

Free ICP domain name filing interface

阿里云全链路数据治理

Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its

【Django中运行scrapy框架,并将数据存入数据库】

保留一位小数和保留两位小数
随机推荐
Extend ado Net to realize object-oriented CRUD (.Net core/framework)
运行npm run eject报错解决方法
自动化测试的生命周期是什么?
The describeregion interface of CVM is special and has two versions
Global and Chinese market of digital fryer 2022-2028: Research Report on technology, participants, trends, market size and share
Black box and white box models for interpretable AI
线程注意事项
慕思股份在深交所上市:毛利率持续下滑,2022年一季度营销失利
Global and Chinese market of offshore furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
Error "computing failed in `stat\u summary\u hex() `"
The seminar on "global IPv6 development and outlook 2020-2021" was held in Beijing
Overview of C program operation mechanism
Global and Chinese market of water massage column 2022-2028: Research Report on technology, participants, trends, market size and share
opencvsharp二值图像反色
面试中的最常被问到的两种锁
Bit operation
免费ICP域名备案查接口
后疫情时代下,家庭服务机器人行业才刚启航
Obtain the package name, application name, icon, etc. of the uninstalled APK through packagemanager. There is a small message