c - 编译器错误链接对象以在 Visual Studio 中进行远程编译
问题描述
目前我运行一个 freenas 监狱,所以我可以编译我的 c 代码,它使用一些 POSIX 函数。监狱很新鲜,我所做的只是启用 SSH 和“pkg install gcc”。但是我收到以下错误:
1>Starting remote build
1>Compiling sources:
1>main.c
1>cc1 : warning : command line option '-fthreadsafe-statics' is valid for C++/ObjC++ but not for C
1>cc1 : warning : command line option '-frtti' is valid for C++/ObjC++ but not for C
1>Linking objects
1>/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.1/6.4.0/../../../libstdc++.so : error : undefined reference to `__cxa_thread_atexit_impl@FBSD_1.5'
1>collect2 : error : ld returned 1 exit status
1>Done building project "testingdesktop.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我不知道发生了什么,有些东西不见了,但我不知道为什么。
解决方案
推荐阅读
- javascript - 使用 onClick(event) 搜索 DOM 元素的属性不起作用
- python - 将相同的列表值分组为一个列表值
- python - 强制 sql_mode 为“STRICT_TRANS_TABLES”仍然收到警告 Django
- python - For 循环需要不止一次迭代才能完成
- python - 用于在熊猫数据框中选择行的函数的条件参数
- laravel - 如何从我的登录控制器中获取一个变量以供 Laravel 中的所有视图使用?
- java - 从我的应用程序收到消息时如何发送推送通知
- c# - 使用Imagesharp调整大小后存储在SQL Server数据库中的图像未在html中显示
- tcp - 如何在 GNS3 中模拟 Modbus 流量?
- ios - 将构成我的应用程序数据模型的数组变量放在哪里最好?