在debian amd64 wheezy(测试)上编译一个简单的hello world程序时遇到以下错误g++ -m32:
/ usr/bin/ld:在搜索-lstdc ++/usr/bin/ld时跳过不兼容的/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so:跳过不兼容/ usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libstdc ++.a搜索-lstdc ++/usr/bin/ld时:找不到-lstdc ++ collect2:ld返回1退出状态
我没有任何问题gcc -m32.我还安装了lib32stdc ++包,但它似乎没有用.谢谢.
我有一个期望脚本,当某些任何期望条件不符合时需要失败.例如:
expect "Hello World"
Run Code Online (Sandbox Code Playgroud)
如果期望脚本在一定时间内没有找到"Hello World",则它应该失败.根据expect手册,我可以timeout在期望中添加一个条件,但是我expect在脚本中有很多语句,我不想为所有这些语句添加超时.有没有更好的方法呢?
如何针对以下情况进行SQL查询?假设您有两个表:table1和table2,其中table1中的每个条目在table2中可以有多个对应的条目.我想要的查询的伪代码是:
for each $row in table1
$rows = find all rows in table2 that corresponds to $row with $row.id == table2.foreign_id
# $rows is an array of corresponding row in table2
if all rows in $rows meet some condition
then
return $row
else
continue
end
end
Run Code Online (Sandbox Code Playgroud)
编辑:注意在上面的伪代码中,我只希望table1中的行在TABLE2中具有满足某些条件的所有关系,而不仅仅是table1中的某些条件.
PS:我想在SQL中这样做,因为我可能会遇到效率问题.
非常感谢.