腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
10
回答
如何在
Linux
中找到C语言的头文件?
c
、
linux
、
gcc
、
header-files
当我在
Linux
上写C程序,然后用gcc编译它们时,我总是好奇这些头文件在哪里。例如,stdio.h在哪里。更广泛地说,
stdbool.h
在哪里?
浏览 3
提问于2012-10-26
得票数 68
回答已采纳
2
回答
#定义和#包含C中的顺序
c
、
gcc
、
include
、
c-preprocessor
下面是我用gcc编译的代码#include<
stdbool.h
>int main() { In file included from test.c:2:0: /usr/lib/gcc/x86_64-
linux
-gnu/4.7/include
浏览 3
提问于2013-09-23
得票数 11
回答已采纳
1
回答
为什么在编译时忽略我的标题?
gcc
我试图在Centos 7上编译dahdi-
linux
。我已经安装了gcc-9和最新的内核(我需要dahdi-echocan-oslec,标准内核太老了),这是错误的。c/x86_64-redhat-
linux
/9/include/'/bin/gcc LDFLAGS='-I/opt/rh/devtoolset-9/root/usr/lib/gcc make -C drivers/drivers/
浏览 8
提问于2022-12-03
得票数 0
1
回答
Eclipse-PDT:更改包含文件夹
c++
、
c
、
eclipse
、
gcc
、
eclipse-pdt
我在
Linux
中使用Eclipse-PDT带有一种交叉的gcc(gcc定制的编译程序)。问题是,当我在源代码中包含一个头文件时,例如#include <
stdbool.h
>,Eclipse会尝试在文件夹/usr/lib/gcc/x86_64-
linux
-gnu/4.9/include下找到该文件
浏览 3
提问于2014-11-04
得票数 0
1
回答
函数'scan_s‘的隐式声明[-隐式-函数-声明]
c
、
compiler-errors
、
scanf
、
c11
、
tr24731
我正在编写
linux
,在编译代码时遇到了问题,下面是我的包含、编译器接收到的错误以及它引用的代码:
linux
.c:156:11:警告:函数'scan_s‘的隐式声明-W隐函数声明 #include <
stdbool.h
>#include "ctype.h" scanf_s("%[^\n]s", filename,
浏览 9
提问于2016-01-18
得票数 1
1
回答
睡眠功能不像预期的那样运作。
c
、
gcc
、
mingw
、
stdout
这里的睡眠功能在Windows和
Linux
上的工作方式不同。#include <stdio.h>#include <
stdbool.h
>#include <unistd.h>但是在
Linux
上,它等待了整整2秒,然后完全打印了....。我在Windows上使用MinGW。
浏览 5
提问于2020-06-12
得票数 1
回答已采纳
6
回答
stdbool.h
在哪里?
c
、
linux
、
gcc
、
boolean
小问题,因为我找不到定义_Bool的位置,甚至找不到
stdbool.h
/usr/include/c++/4.3/tr1/
stdbool.h
而/usr/include/*和/usr/include/*/*上用于_Bool的grep也找不到它。
浏览 1
提问于2009-11-01
得票数 23
回答已采纳
1
回答
报头排除?
c++
、
c
、
header-files
、
lint
简介:如果我对问题的描述看起来很可笑--请朝我扔西红柿:)否则,谢谢你的帮助。
浏览 4
提问于2015-09-17
得票数 7
回答已采纳
4
回答
为什么我会得到“错误:未声明标识符的使用”错误?
c
、
printf
、
null-pointer
摘要我编写了一个简单的程序,因为我想知道指针的大小,以及当指针指向不同的数据类型时它们是否不同。另外,由于某些原因,int*没有错误,只有bool*和char*,如下面的错误消息所示。#include <stdio.h> int* ptri = NULL; bool* ptrb = NULL; printf("%lu %lu %lu"
浏览 4
提问于2020-12-07
得票数 1
回答已采纳
2
回答
我的
linux
的gcc编译器不支持布尔值
c
、
linux
、
gcc
、
compiler-errors
、
boolean
我正在尝试制作一个返回类型的函数,因为程序的boolean...the语法似乎是正确的,但编译器给出了错误...#include<stdio.h>我创建的函数是:35. if ( node != NULL )37. 39.}bininsertion.c:34:1: error: unknown t
浏览 4
提问于2013-03-03
得票数 6
回答已采纳
3
回答
预处理器#ifndef
c
、
header-files
、
ifndef
假设我有a.h,它包含以下内容:<stddef.h>假设我也有包含<
stdbool.h
>的b.h。那么,当b.h包含a.h时,a.h是否包含stddef.h和stein.h而不重新包含
stdbool.h
,或者这些预处理器定义函数是否仅用于查看整个类是否已重新定义,而不是其中的特定函数?编辑: 另外,假设b.h包含另一个包含
stdbool.h
的头文件,-that使b.h同时具有来自该类和a.h的
stdbool.h
浏览 2
提问于2012-03-14
得票数 0
回答已采纳
3
回答
C中负数的模
c
、
modulus
、
negative-number
#include<stdio.h>#include<
stdbool.h
> int result> python[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on
linux
浏览 5
提问于2014-02-24
得票数 5
回答已采纳
1
回答
错误:预期‘=’,‘asm’或‘__attribute__’之前的function_name
c
、
gcc
、
msp430
以下是错误:In file included from msp430_lib.h:9:0,gpio_api.h:20:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gpio_init’ gpio_api.h:27:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_
浏览 5
提问于2013-09-01
得票数 0
回答已采纳
2
回答
_Bool和bool类型在C?
c
、
types
、
boolean
有人能解释一下C中的_Bool和bool数据类型有什么不同吗? _Bool x = 1; printf("%d", y);
浏览 1
提问于2012-01-04
得票数 73
回答已采纳
1
回答
更好的
stdbool.h
c
、
libraries
、
boolean
不如换个#define true 1#define __bool_true_false_are_defined 1#define bool _Bool#define false (bool)0这样,在这个问题中指定的问题就不会发生,方法是将文本转换成一个字节的bools,而不是留下四个字节的整数?我在哪里能正式提出这个建议? 另一个变化是,我们完全摆脱_Bool,只
浏览 0
提问于2020-02-05
得票数 -1
1
回答
stdbool.h
:#定义true true
c++
、
gcc
、
c++98
stdbool.h
包含以下代码:/* Defining these macros in C++98 is a GCC extension. */
浏览 0
提问于2016-12-10
得票数 0
1
回答
gcc __sync_bool_compare_and_swap和cmpxchg有什么不同?
linux
、
gcc
、
compare-and-swap
为了使用cas,gcc提供了一些有用的函数,例如但是我们也可以使用像cmpxchg这样的asm代码__asm__ __volatile__( "sete %0;\n" :"a" (old_value.ptr), "d" (old_value.
浏览 2
提问于2012-03-21
得票数 3
回答已采纳
11
回答
bool是原生C类型吗?
c
、
gcc
、
linux-kernel
、
boolean
我注意到
Linux
内核代码使用bool,但我认为bool是一种C++类型。bool是一个标准的C扩展(例如,ISO C90)还是一个GCC扩展?
浏览 7
提问于2009-10-23
得票数 284
回答已采纳
2
回答
为什么clang的
stdbool.h
包含#定义假假
c++
、
clang
、
language-lawyer
以下几行:#define false false它们包含在一个间接强制执行#ifdef的__cplusplus块中,因此,即使
stdbool.h
浏览 4
提问于2015-06-16
得票数 63
回答已采纳
1
回答
从Windows中的函数返回结构会破坏其数据
c
、
visual-studio
下面的C结构用于报告2D游戏中的跟踪结果。{ bool beganColliding; float fraction; Vector2 contactNormal; ComponentType co
浏览 6
提问于2022-05-19
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux DNS 查询剖析 Linux 中国
Manjaro Linux 22.0 发布|Linux 中国
Alpine Linux 3.18 发布|Linux 中国
Linux基础(3)linux命令3
linux高级课程-在Linux中编程
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券