VS2015 for linux开发远程调试编译错误

一曲闲赋 2017-07-07 05:18:27
1>------ 已启动生成: 项目: dispatch, 配置: Debug x64 ------
1> Validating architecture
1> Validating sources
1> Copying sources remotely to '10.8.226.125'
1> Starting remote build
1> Compiling sources:
1> Linking objects
1> /root/projects/myProjects/obj/x64/Debug/dispatch_application.o: In function `DispatchApplication::initConfig()':
1> /root/projects/myProjects/dispatch_application.cpp:35: undefined reference to `AppConfig::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
1> /root/projects/myProjects/obj/x64/Debug/dispatch_application.o: In function `DispatchApplication::initLog()':
1> /root/projects/myProjects/dispatch_application.cpp:45: undefined reference to `AppLogger::instance()'
1> /root/projects/myProjects/dispatch_application.cpp:45: undefined reference to `AppLogger::open(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)'
....
此处省略
....
1> /root/projects/rule_env/XValue.h:383: undefined reference to `_ZN8rule_env6XValue12toStringImplB5cxx11EiPKv'
1> /root/projects/myProjects/obj/x64/Debug/qos_dispatch_main.o: In function `main':
1> /root/projects/myProjects/qos_dispatch_main.cpp:12: undefined reference to `_Z14bin_parent_dirB5cxx11Pc'
1> collect2: error: ld returned 1 exit status
1>
1>D:\wsCode\code_git\dispatcher\dispatch\obj\x64\Debug\dispatch_application.o: In function `DispatchApplication: : error :
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Application Type\Linux\1.0\Linux.targets(264,5): error : 路径中具有非法字符。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
...全文
381 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
LubinLew 2017-07-09
  • 打赏
  • 举报
回复
用VS便宜调试Linux太小众的操作了,没几个人用,很难能得到解答。 我认为gdb更加直接快速,用VS开发windows以外的程序没有多少益处

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧