草庐IT

character-reference

全部标签

Git 远程 : Error: fatal: protocol error: bad line length character: Unab

我设置了一个git服务器,现在想从客户端推送我的repo。我使用gitpushoriginmaster并收到此错误消息:fatal:protocolerror:badlinelengthcharacter:Unab不知道怎么回事。我不知道“Unab”是什么。我试图调整shell的大小,但它仍然是“Unab”。我找不到此错误消息的解决方案。我使用“authorized_keys”和SSH设置服务器。(我可以使用SSH连接到它。)好像是git的问题?顺便说一句:服务器是在Windows7VM中设置的 最佳答案 这个错误信息有点晦涩,但它

Git 子模块头 'reference is not a tree' 错误

我有一个项目有一个指向无效提交的子模块:子模块提交保持在本地,当我尝试从另一个repo获取它时,我得到:$gitsubmoduleupdatefatal:referenceisnotatree:2d7cfbd09fc96c04c4c41148d44ed7778add6b43Unabletocheckout'2d7cfbd09fc96c04c4c41148d44ed7778add6b43'insubmodulepath'mysubmodule'我知道子模块HEAD应该是什么,有什么方法可以在本地更改它,而无需从提交2d7cfbd09fc96c04c4c41148d44ed7778add6

c - 使用 libevent 编译时对 `event_new' 的 undefined reference

我现在正在使用libevent:#include#include#include#include#include#includestructevent_base*base;intPORT=9999;intBACKLOG=5;intcreate_bind_listen(){structsockaddr_inmy_addr;intyes=1;intsock=socket(AF_INET,SOCK_STREAM,0);setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int));memset(&my_addr,0,sizeof(struc

c++ - FFMPEG 在 C++ 中对 'avcodoec_open2' 的 undefined reference

将FFMPEG库从0.8更新到“ffmpeg版本git-2012-04-12-277f20c”后编译我的一个C++程序时出现错误我在编写程序时得到的错误如下:--------begin--------Linking:Analysing_Server./source/Encoding_Thread.o:Infunction`CEncoding_Thread::do_work()':/home/Analyser/source/Encoding_Thread.cpp:155:undefinedreferenceto`avcodec_open2'collect2:ldreturned1exit

c++ - 无法在 Linux 中使用 curl 编译 - undefined reference

我正在尝试使用curl库在Linux(ubuntu)中编译一个C++示例,但我得到了对“curl_easy_init”的undefinedreference编译命令:gcc-L/usr/local/lib-lcurl-I/usr/local/include-orequestrequest.cpp结果:/tmp/ccZwDiCf.o:Infunction'main':request.cpp:(.text+0xa):undefinedreferenceto'curl_easy_init'request.cpp:(.text+0x31):undefinedreferenceto'curl_e

c++ - 链接错误 : undefined reference

我的编译器报告了对openWallet(..)函数的undefinedreference。如您所见,我已链接响应库-L/usr/lib-lkdeui-kdecore-lkparts。错误:password.cpp:(.text+0x29):undefinedreferenceto`KWallet::Wallet::openWallet(QStringconst&,unsignedlonglong,KWallet::Wallet::OpenType)'编译命令:g++-Wl,-O1-Wl,-rpath-link,/usr/lib/x86_64-linux-gnu-opassword_cl

linux - 链接到静态库后 undefined reference

我写了一个简单的程序来测试xdotool是否可以满足我的要求。(嗯,不是真的。我的第一步是确保我是否可以调用xdotool库。)#include#includeusingnamespacestd;intmain(){cout但是,当我使用g++-oamain.cpplibxdo.a-lXtst-lX11-lXinerama-I../test/xdotool-2.20110530.1编译时,出现以下错误留言:/tmp/ccW95RQx.o:Infunction`main':main.cpp:(.text+0x5):undefinedreferenceto`xdo_version()'ma

regex - 为什么 POSIX "printable characters"类不匹配简单字符串?

我编写了以下脚本来测试“可打印字符”字符类,如here所述.#!/bin/shcase"foo"in*[:print:]*)echo"foundaprintablecharacter";;*)echo"foundnoprintablecharacters";;esac我希望这个脚本输出foundaprintablecharacter,"foo"中至少有一个(事实上,所有)字符是可打印的。相反,它输出"foundnoprintablecharacters"。为什么"foo"中的字符未被识别为可打印字符? 最佳答案 字符串[:只是一个特

c - 对 `round' 的 undefined reference - 为什么??我正在使用 math.h

这个问题在这里已经有了答案:Undefinedreferenceto`sin`[duplicate](4个答案)关闭6年前。我的源代码有点问题。gcc跟我说话:undefinedreferenceto`round'但我不知道为什么,因为我正在使用stdio.h、stdlib.h、math.h...:-(你能帮我解决这个问题吗?#include#include#include#include#include#include#include#include#defineVERYBIG200intdir_size(constchar*dirname){intsize=0;charpath[V

c++ - 使用 ICC 的 Linux 中对 clock_gettime() 的 undefined reference

我正在尝试让代码(见下文)在Ubuntu上运行。该代码使用clock_gettime()。我想我已经成功链接到librt.a:****BuildofconfigurationDebugforprojecttest****make-kallBuildingfile:../src/test.cppInvoking:IntelIntel(R)64C++Compilericpc-g-I/usr/include/boost-std=c++0x-MMD-MP-MF"src/test.d"-MT"src/test.d"-c-o"src/test.o""../src/test.cpp"Finished