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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了glCubicRayCast.obj : error LNK2019: 无法解析的外部符号 __imp__glewInit,该符号在函数 _main中被引用相关的知识,希望对你有一定的参考价值。

glCubicRayCast.obj : error LNK2019: 无法解析的外部符号 __imp__glewInit,该符号在函数 _main 中被引用
1>D:\文件\ct 牙齿\Raycasting_good\glCubicRayCast\Debug\glCubicRayCast.exe : fatal error LNK1120: 1 个无法解析的外部命令
这是为什么?

你的这个函数未实现,如果你是调用其他的库,那就是库未被引用,用 #progma comment(lib, "xxx.lib") 引用一下就行了追问

哦,谢谢,怎么调用?

追答

不是调用的问题,是你调用的glewInit函数有问题,你可能引入了.h,但是lib文件之类的没编译进来

参考技术A 我也遇到了个问题,一开始以为是没有把lib引入,检查半天发现不是这个问题,是glew版本的问题。我后来下载了一个最新版本的源代码,并且用vs2010编译,将相应的lib和dll覆盖原先的,就可以正常使用了

在 xdebug 中激活 PHP html_erros 链接

【中文标题】在 xdebug 中激活 PHP html_erros 链接【英文标题】:Make PHP html_erros link active in xdebug 【发布时间】:2014-02-13 11:42:10 【问题描述】:

在 PHP 上,当 html_errors 指令设置为 On 时,它会显示指向违规函数手册的便捷链接,例如:

警告:require_once(offending_file.php) [function.require-once]:打开流失败:...

但是,一旦打开 xdebug,标签就会被详细传递,你最终会得到类似的结果:

警告:require_once(offending_file.php) [http://php.net/manual/function.require-once'>function.require-once]:无法打开流:...

使用 xdebug 时如何再次启用这些链接?我查看了 xdebug 指令,但找不到那个。

【问题讨论】:

【参考方案1】:

虽然我无法重现您的行为,但与此相关的设置是 xdebug.manual_url。

无论如何,这是我的配置,您可以测试一下。

    zend_extension=/usr/lib64/php5.5/lib/extensions/no-debug-zts-20121212/xdebug.so
xdebug.auto_trace="1"
xdebug.trace_output_dir="/var/log/xdebug"
xdebug.trace_output_name="trace.%s_%t"
xdebug.trace_format="0"
xdebug.trace_options="1"
xdebug.collect_assignments="1"
xdebug.collect_includes="1"
xdebug.collect_params="4"
xdebug.collect_return="0"
xdebug.collect_vars="1"
xdebug.default_enable="1"
xdebug.extended_info="1"
xdebug.manual_url="http://www.php.net"
xdebug.max_nesting_level="100"
xdebug.show_exception_trace="1"
xdebug.show_local_vars="1"
xdebug.show_mem_delta="1"
xdebug.dump.COOKIE=false
xdebug.dump.ENV=false
xdebug.dump.FILES=false
xdebug.dump.GET="NULL"
xdebug.dump.POST="NULL"
xdebug.dump.REQUEST="NULL"
xdebug.dump.SERVER="NULL"
xdebug.dump.SESSION="NULL"
xdebug.dump_globals="1"
xdebug.dump_once="1"
xdebug.dump_undefined="1"
xdebug.pror_enable="0"
xdebug.profiler_enable="1"
xdebug.profiler_output_dir="/var/log/xdebug"
xdebug.profiler_output_name="%s_%t"
xdebug.profiler_enable_trigger="0"
xdebug.profiler_append="0"
xdebug.profiler_aggregate="0"
xdebug.remote_enable="On"
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_mode="req"
xdebug.remote_port="9000"
xdebug.remote_autostart="0"
xdebug.remote_log=""
xdebug.idekey=""
xdebug.var_display_max_data="16384"
xdebug.var_display_max_depth="10"
xdebug.var_display_max_children="512"
xdebug.max_nesting_level="100"
xdebug.overload_var_dump="1"
xdebug.scream="1"
xdebug.cli_color="1"
xdebug.coverage_enable="1"

【讨论】:

以上是关于glCubicRayCast.obj : error LNK2019: 无法解析的外部符号 __imp__glewInit,该符号在函数 _main中被引用的主要内容,如果未能解决你的问题,请参考以下文章

Linux汇总一——Linux程序管理,Linux终端,Linux命令格式命令类型及Linux命令帮助

Linux学习导航

Linux 文件/目录管理(初级)

Linux 内核Linux 内核源码结构 ( 下载 Linux 内核源码 | 使用 VSCode 阅读 Linux 内核源码 )

嵌入式linux怎么学

Linux一步一步学Linux——Linux发展史(01)