我必须使用在其他x64_86计算机上编译的共享对象构建项目.我有这个错误:
cc -std=c11 -Wall -Werror -Wextra -pedantic -I./include src/server.c
obj/tftp.o -o bin/server -L./lib64 -lSocketUDP -lAdresseInternet -lpthread
ld: warning: ld: warning: ignoring file ./lib64/libSocketUDP.so, file was
built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture
being linked (x86_64): ./lib64/libSocketUDP.soignoring file
./lib64/libAdresseInternet.so, file was built for unsupported file format (
0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 …Run Code Online (Sandbox Code Playgroud) 如何在屏幕底部显示菜单?我有一个UIImagePickerController,我想让用户选择源类型.我想要3个按钮:"从照片库中取出","从相机中取出","取消".
这是我想要的截图:http: //i.stack.imgur.com/e3JoQ.jpg
我怎样才能做到这一点
我初始化这个结构时遇到问题:
struct node {
int label;
struct node *lchild;
struct node *rchild;
}
int main(void) {
struct node n1;
n1.label = 1;
return EXIT_SUCCESS;
}
Run Code Online (Sandbox Code Playgroud)
问题是我的成员lchild,rchild并没有指向NULL.
我可以通过添加来解决问题
n1.lchild = NULL;
n1.rchild = NULL;
Run Code Online (Sandbox Code Playgroud)
但我不明白为什么我需要这样做?
我尝试<img>使用javascript 在标记后插入文本.
<div id="candy"><img src="candy.png" /> Insert text here!</div>
Run Code Online (Sandbox Code Playgroud)
如果我使用document.getElementById('candy').innerHTML = "test";图像消失.
你能帮助我吗?