VS2013下glew库链接失败问题OpenGL.obj : error LINK2001: 无法解析的外部符号 __imp____glewFramebufferTexture2DEXT

告别SquareLine!用免费的NXP GUI-Guider为海思3516AV300开发LVGL界面(附完整移植流程) 本文详细介绍了如何利用免费的NXP GUI-Guider工具为海思Hi3516AV300开发LVGL界面,包括环境配置、代码移植和性能优化等全流程实战指南。特别针对二维码组件缺失等常见问题提供解决方案,帮助开发者零成本构建高效嵌入式GUI系统。 阅读详情

问题描述

1>OpenGL.obj : error LNK2001: 无法解析的外部符号 __imp____glewFramebufferTexture2DEXT
1>OpenGL.obj : error LNK2001: 无法解析的外部符号 __imp____glewBindFramebufferEXT
1>OpenGL.obj : error LNK2001: 无法解析的外部符号 __imp____glewGenFramebuffersEXT
1>OpenGL.obj : error LNK2019: 无法解析的外部符号 __imp__glewInit@0,该符号在函数 "int __cdecl InitGL(void)" (?InitGL@@YAHXZ) 中被引用

解决方法

网上找了很多种,基本都没用- -试了一个小时终于解决了,记录一下步骤:

  • 在代码最初加上#pragma comment(lib, "glew32.lib") 【当然,前提是VS根目录/VC/Lib下有glew32.lib文件】
  • 【上一步的代替方案】在VS中右键项目,点击属性-链接器-输入,在输入依赖项一栏填上glew32.lib,选择从父级或项目默认继承
  • 【最重要的一步】在引入glew32.dll,glew32.lib,glew32s.lib这几个文件时一定要用32位的!!!不管你的电脑是32位还是64位……而且保险起见建议在Windows/System32和Windows/SysWOW64文件夹中都放一份glew32.dll文件
  • PS: 此外,在引入glew库时要注意顺序。一定要在GLUT引入之前引入,否则会编译错误。也就是说,必须先#include <gl/glew.h> 再#include <gl/glut.h> 或者其他OpenGL文件
[工作流节点24] 外部用户审批的实现方式:让客户、供应商也能参与流程决策 摘要: 明道云支持通过三种方式实现外部用户审批:1)外部表单审批(推荐方案),通过公开表单让外部用户提交审批意见并自动触发流程;2)链接参数审批,通过含参数的URL实现一键确认;3)API/Webhook审批,适用于系统集成场景。三种方案均无需外部用户登录,支持记录操作日志和安全审计。典型应用包括客户确认报价、供应商发货确认等,实现内外流程无缝衔接。建议根据业务复杂度选择:无代码需求用外部表单,轻量审批用链接参数,系统对接用Webhook。 阅读详情

相关推荐

夜间灯光遥感数据介绍及下载汇总

夜间灯光遥感数据介绍及下载汇总

qq_43874102的博客 1万+

关于OpenGL"无法解析的外部符号 _imp_glXXXXXX"报错的处理

1&gt;sift_gpu.lib(SiftGPU.obj) : error LNK2019: 无法解析的外部符号 __imp_glBegin,该符号在函数 “private: void __cdecl SiftGPUEX::DisplayDebug(void)” (?DisplayDebug@SiftGPUEX@@AEAAXXZ) 中被引用 1&gt;sift_gpu.lib(GLTexImag...

Z5122的博客 1万+

Delphi 12.3 精简绿色版下载

Delphi精简绿色版基于原版安装,去掉了InterBase、法语、德语、日语,只保留了Delphi Windows 32和Delphi Windows 64桌面开发,其余部分未做任何修改。Delphi精简绿色版不含任何破解,仅供学习和研究,24小时后请自行删除,如需继续使用Delphi,请购买正版。绿色版基于原版安装,未做任何精简和修改。绿色版不含任何破解,仅供学习和研究,24小时后请自行删除,如需继续使用RAD Studio,请购买正版。

全粘工程师 4308

error LNK2019: 无法解析的外部符号 __imp__glewInit@0,该符号在函数 _main 中被引用

opengl中使用glew库时调用glewInit()函数报错: 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 __imp__glewInit@0,该符号在函数 _main 中被引用 OpenGL 我们只需要去项目的属性管理器预处理器中添加GLEW_STATIC就行。 原因是项目中链接的是静态库,但是glew文件中预处理命令中默认是GLEW_BUILD类型,如下图所示: [外链图片转存中…(img-VVgJD2be-1619945773330)] 所以需要稍

qq_34729374的博客 7470

LIO-SAM编译ubuntu20.04 Noetic

一、下载二、编译&&解决报错报错如下。

Kenneth666888的博客 689

Cisco Packet Tracer 7.3免登录技巧:3种方法快速跳过注册界面(附详细截图)

本文针对Cisco Packet Tracer 7.3启动时遇到的登录界面问题,提供了三种合法高效的解决方案。详细介绍了如何利用官方访客模式快速启动、注册思科账号实现一劳永逸登录,以及通过调整本地安装配置优化启动流程,帮助网络学习者与备考者绕过繁琐步骤,快速进入实验环境。

weixin_29305337的博客 741

VS 出现LIK2001:无法解析外部符号几种情况及解决办法

在开始这个话题之前,非常想吐槽一下VS 2010,因为今天在封装一个静态库时就出现了这个情况,之前也是遇到过这个情况,以为是跟以往出现的情况是一样的,按照着往常的解决思路查找了一遍问题所在,发现完全没有问题啊,冥思苦想了大半天,换了N种骚操作外加三千青丝又掉了不少,我终于是发现了问题所在,忍不住的爆了个粗口,坑爹的VS。直接进入正题,将我所遇到过出现这个请况的原因和解决方法一一道来。 第一种请况 ...

Mrlianggy的博客 2661

YOLOv11模型改进-模块-引入特征细化模块FRFN 解决小目标、遮挡等问题

FRFN 是一种专门设计的深度学习结构,旨在提高图像处理任务中的特征表示能力。它的核心设计理念是通过逐层细化和优化特征图,从而实现更高的分类和检测精度。1. 特征提取层:通过卷积层提取初始特征,并进行批量归一化以增强稳定性。2. 特征细化模块:在每个模块中,当前层特征图与前一层特征图进行融合,以强化特征表示。3. 跳跃连接:通过跳跃连接保留多尺度信息,帮助缓解深层网络中的信息丢失。4. 非线性激活:使用激活函数(如ReLU)增加模型的非线性能力。5. 输出层。

qq_64693987的博客 3337

.obj文件出现无法解析的外部符号

metaObject@Toast@@UEBAPEBUQMetaObject@@XZ)oast.obj : error LNK2001: 无法解析的外部符号 "public: virtual void * __cdecl Toast::qt_metacast(char const *)" (?很玄学,查了众多资料都无法解决,翻译了一下这个错误是一个链接器错误(LNK2001),它表明代码中使用了 Toast 类的成员函数 qt_metacast,但编译器找不到该函数的定义.稀里糊涂地开始,稀里糊涂地结束。

qq_40323490的博客 3875

Google 二次签名 导致 Facebook , Google 登录失败

google 授权登录

xq610928的博客 1957

LVGL core group焦点分组管理(lv_group.c)

lv_group_t是用于焦点管理的,将需要获取焦点的对像加入到同一个分组内,再将其通过挂到指定的事件驱动中,就可以控制焦点了。而被加入的对象又可以通过焦点状态事件和事件来控制对象的焦点逻辑了。创建好的分组通过接口挂事件驱动中,这样就可以指定一个自定义的焦点分组了。;) {if(!} }友情提示:无论是接口还是都是单例的,即被设置后前一个被设置的值就失效了;此方案可以保证焦点的唯一 性,但也一定要记住要在适合的位置设置回来,以防丢失焦点。

Bigan(安)的博客 3909

.obj : error LNK2019: 无法解析的外部符号

error LNK2019: 无法解析的外部符号

a031516的博客 2742

【AI工具】Browser use搭建及使用的保姆级教程:让AI帮你自动操作浏览器

【AI工具】Browser use搭建及使用的保姆级教程:让AI帮你自动操作浏览器

funfan的博客 2535

###.obj : error LNK2001: 无法解析的外部符号“class ### ###”(?### n0O3###’OA)

在用vs2019编译一个游戏exe,遇到过一个非常麻烦的问题:报***.obj LNK2001 无法解析的外部符号。后来,无意中看到引擎定义的导出extern变量是有#define #### 的,这个是在预编译定义里设定的。1、一个3D的游戏引擎,先编译成lib和dll,里面有在头文件导出extern的变量供游戏使用;在游戏exe这边,却在预编译里定义了另外一个不同的名称,试着改成相同的,竟然顺利通过编译了。这到底差别在哪里呢?比对了另外一个差不多同样代码的别人的项目,它是可以编译成功的。

XINGTECODE的博客 2287

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

VS报错无法解析的外部符号.....

我们在使用VS编译器编写C代码运行时提示:严重性 代码 说明 项目 文件 行 禁止显示状态错误 LNK2019 无法解析的外部符号 _main,函数 “int __cdecl invoke_main(void)” (?invoke_main@@YAHXZ) 中引用了该符号 StudyCProject E:\VisualStudioProjects\StudyCProject\StudyCProject\MSVCRTD.lib(exe_main.obj) 1有多种方法会造成此错误。 所有这些方法都涉及引用链接

qq_45615577的博客 6718

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

关于各种无法解析的外部符号问题的相应解决方案

<br />在使用vs2008调试程序的过程中,经常会出现无法解析的外部符号问题,可能的原因有很多种,下面这些是我一年来积累的经验.<br />仅供参考.<br /> <br />考虑可能的原因:<br />[0]出现无法解析可能是因为lib文件不正确,比如64位的编译配置,结果使用的是32位的lib包.<br />[1]只写了类声明,但还没有写实现类,造成调用时无法解析<br />[2]声明和定义没有统一,造成链接不一致,无法解析<br />[3]没有在项目属性页的链接器的命令行选项加入相应的类包。<br

enotswn的专栏 5万+

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

vs调试报错 error LNK2001: 无法解析的外部符号 main 文件MSVCRT.lib(crtexe.obj)

vs调试报错 error LNK2001: 无法解析的外部符号 main 文件MSVCRT.lib(crtexe.obj)的原因及解决方案。

duiwangxiaomi的博客 5546

qt在vs中编译出现link2001时,不会生成moc文件了

在对应头文件-属性-配置属性-常规-项类型-改为Qt Meta-Object Compiler (moc) 即可。有时候不知道啥原因头文件类型变成普通C++头文件。

BlueMan 1141

无法链接glew的解决办法-编译开源库出现: error LNK2001: 无法解析的外部符号

无法链接glew的解决办法-编译开源库出现: error LNK2001: 无法解析的外部符号   参考官方配置指南:http://glew.sourceforge.net/install.html 1. 编译build开源库中,引入了gluw, 正常引入:.h, .lib .dll 文件后,出现下列错误 <span style="font-size:14px;"...

weixin_30448685的博客 830

error LNK2001: unresolved external symbol _main

如果在 ATL 组件程序中调用了 CRT 的运行时刻库函数,比如开平方 sqrt() ,那么编译的时候可能会报错“error LNK2001: unresolved external symbol _main”。怎么办?删除预定义宏“_ATL_MIN_CRT”!操作方法也见图一、图二。(vc.net 2003 中的这个项目属性叫“在 ATL 中最小使用 CRT”) 学习VC++时经常会遇到链接错误...

weixin_34220623的博客 1756

无法解析的外部符号:__imp_glewInit@0

glew库提供了很多版本,可以分为32位和64位,mx版和非mx版,并且旧版本1.6.0和1.10.0等之后版本的lib文件还拥有不同的调用预定。 所以使用glew的时候一定要注意版本问题。特别是1.6.0和1.10.0的头文件和库文件是不兼容的。1.6.0的调用约定是stdcall,...

chinawilliam2008的博客 1690

vs2010解决方案编译link2001无法解析的外部符号

由于将其他项目b的b.lib复制在该项目的路径下,而该项目a优先用了项目a路径下的b.lib,结果发现其他项目b改变变量之后,该项目a没有用输出路径的新版b.lib,而是使用了旧的b.lib,其中没有找到新的变量而报错。

qq_21586985的博客 162

SiftGPU:编译SiftGPU出现问题-无法解析的外部符号 glutInit

SiftGPU的原始库可以编译通过。但不能使用,在使用时引出了一连串96个编译错误。

wishchinYang的专栏 2200

OpenGL配置Glew报错 _glewInit@0 已经在 glew32.lib(glew32.dll)中定义

OpenGL配置Glew报错

dealimbo的博客 870

Opengl_glew32_ 无法解析的错误

1、确认用的是win32的glew.lib, 而非x64 2、确认当前操作系统x86| x64

swazer_z 1255

pango 无法解析的外部符号 _imp_glewInit

VS2019 glew1.9.0.1 (nuget 安装) 在使用vs编译时出现多种问题; setlocal 问题 使用管理员启动vs对工程进行编译 _imp_glewInit … 等符号无法解析 错误原因在于使用Cmake编译时glew使用了静态链接 (GLEW_LIBRARY路径值) xxx/static/glew.lib 在工程中将静态链接改为动态 xxx/dynamic/glew.lib ...

飞飞君 629
上一篇: Unity对象池技术(原理+实战)
下一篇: Windows下迁移指定MySQL数据库至Linux
LemonXQ
博客等级 码龄9年 186粉丝 25原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值