Erro ao incluir o Header <stdlib.h> [RESOLVIDO]

1. Erro ao incluir o Header <stdlib.h> [RESOLVIDO]

Jefferson Henrique dos Santos e Silva
jefferson0henry

(usa Ubuntu)

Enviado em 05/01/2016 - 07:34h

Bom sou novo em programação.

o problema é o seguinte: toda vez que implemento o header sdtlib.h da erro na hora da compilação e a IDE abre o arquivo types.h na ide e informa que o header time.h não foi encontrado.
porém se eu compilo um cód. sem o header stdlib funciona e se eu incluir ele no cabealho, da o mesmo erro que descrevi acima.

Bom ja procurei na internet, ja tentei atualizar o toolchain,gcc,g++,build-essentialm reinstalei a IDE e nada funcionou.

Gostaria -Claro se puder-- que alguém me desse ao menos uma luz.

Desde já agradeço.


  


2. Re: Erro ao incluir o Header <stdlib.h> [RESOLVIDO]

Paulo
paulo1205

(usa Ubuntu)

Enviado em 06/01/2016 - 22:54h

Se você está no Linux, certamente deveria ter tanto o time.h quanto o sys/ time.h.

(Eu adoraria ver para você em quais pacotes residem os arquivos de tais cabeçalhos, mas estou só com celular pelos próximos seis dias.)


3. Re: Erro ao incluir o Header <stdlib.h>

Perfil removido
removido

(usa Nenhuma)

Enviado em 06/01/2016 - 23:22h

(Comando utilizado : apt-file search -x "\/time\.h$")
De acordo com o apt-file no Debian, há time.h em

asterisk-dev: /usr/include/asterisk/time.h
brickos: /usr/include/brickos/sys/time.h
brickos: /usr/include/brickos/time.h
cc1111: /usr/share/sdcc/include/time.h
dietlibc-dev: /usr/include/diet/sys/time.h
dietlibc-dev: /usr/include/diet/time.h
elks-libc: /usr/lib/bcc/include/sys/time.h
elks-libc: /usr/lib/bcc/include/time.h
frama-c-base: /usr/share/frama-c/libc/sys/time.h
frama-c-base: /usr/share/frama-c/libc/time.h
freebsd-glue: /usr/include/freebsd/sys/time.h
latrace: /etc/latrace.d/headers/time.h
libavutil-dev: /usr/include/libavutil/time.h
libavutil-dev: /usr/include/x86_64-linux-gnu/libavutil/time.h
libbind-dev: /usr/include/bind-export/dns/time.h
libbind-dev: /usr/include/bind-export/isc/time.h
libbind-dev: /usr/include/dns/time.h
libbind-dev: /usr/include/isc/time.h
libbind-export-dev: /usr/include/bind-export/dns/time.h
libbind-export-dev: /usr/include/bind-export/isc/time.h
libbotan1.10-dev: /usr/include/botan-1.10/botan/time.h
libc6-dev: /usr/include/time.h
libc6-dev: /usr/include/x86_64-linux-gnu/bits/time.h
libc6-dev: /usr/include/x86_64-linux-gnu/sys/time.h
libc6-dev-i386: /usr/include/sys/time.h
libcoin80-dev: /usr/include/Inventor/C/base/time.h
libcue-dev: /usr/include/libcue-1.4/libcue/time.h
libcxxtools-dev: /usr/include/cxxtools/time.h
libdispatch-dev: /usr/include/dispatch/time.h
libenet-dev: /usr/include/enet/time.h
libfixposix-dev: /usr/include/lfp/time.h
libfreerdp-dev: /usr/include/x86_64-linux-gnu/freerdp/utils/time.h
libgrpc-dev: /usr/include/grpc/support/time.h
libinsighttoolkit3-dev: /usr/include/InsightToolkit/Utilities/vxl/vcl/vcl_sys/time.h
libinsighttoolkit4-dev: /usr/include/ITK-4.6/vcl_sys/time.h
libklibc-dev: /usr/lib/klibc/include/sys/time.h
libklibc-dev: /usr/lib/klibc/include/time.h
libnewlib-dev: /usr/include/newlib/machine/time.h
libnewlib-dev: /usr/include/newlib/sys/time.h
libnewlib-dev: /usr/include/newlib/time.h
libpcl-dev: /usr/include/pcl-1.7/pcl/common/time.h
libpcl-dev: /usr/include/pcl-1.7/pcl/console/time.h
libpgm-dev: /usr/include/pgm-5.1/pgm/time.h
libpjproject-dev: /usr/include/pj/compat/time.h
librelion-dev-common: /usr/include/relion-1.3/src/time.h
libreoffice-dev: /usr/include/libreoffice/osl/time.h
libroot-core5.34: /usr/lib/x86_64-linux-gnu/root5.34/cint/include/time.h
libsynfig-dev: /usr/include/synfig-0.0/synfig/time.h
libtntdb-dev: /usr/include/tntdb/cxxtools/time.h
libtntdb-dev: /usr/include/tntdb/time.h
libvxl1-dev: /usr/include/vxl/vcl/vcl_sys/time.h
libwine-dev: /usr/include/wine/msvcrt/time.h
libwine-development-dev: /usr/include/wine-development/msvcrt/time.h
libxenomai-dev: /usr/include/xenomai/posix/time.h
linux-headers-3.16.0-4-amd64: /usr/src/linux-headers-3.16.0-4-amd64/include/config/netfilter/xt/match/time.h
linux-headers-3.16.0-4-amd64: /usr/src/linux-headers-3.16.0-4-amd64/include/config/printk/time.h
linux-headers-3.16.0-4-common: /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/time.h
linux-headers-3.16.0-4-common: /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h
linux-headers-3.16.0-4-common: /usr/src/linux-headers-3.16.0-4-common/include/uapi/linux/time.h
linux-headers-4.2.0-0.bpo.1-amd64: /usr/src/linux-headers-4.2.0-0.bpo.1-amd64/include/config/netfilter/xt/match/time.h
linux-headers-4.2.0-0.bpo.1-amd64: /usr/src/linux-headers-4.2.0-0.bpo.1-amd64/include/config/printk/time.h
linux-headers-4.2.0-0.bpo.1-common: /usr/src/linux-headers-4.2.0-0.bpo.1-common/arch/x86/include/asm/time.h
linux-headers-4.2.0-0.bpo.1-common: /usr/src/linux-headers-4.2.0-0.bpo.1-common/include/linux/time.h
linux-headers-4.2.0-0.bpo.1-common: /usr/src/linux-headers-4.2.0-0.bpo.1-common/include/uapi/linux/time.h
linux-headers-4.3.0-0.bpo.1-amd64: /usr/src/linux-headers-4.3.0-0.bpo.1-amd64/include/config/netfilter/xt/match/time.h
linux-headers-4.3.0-0.bpo.1-amd64: /usr/src/linux-headers-4.3.0-0.bpo.1-amd64/include/config/printk/time.h
linux-headers-4.3.0-0.bpo.1-common: /usr/src/linux-headers-4.3.0-0.bpo.1-common/arch/x86/include/asm/time.h
linux-headers-4.3.0-0.bpo.1-common: /usr/src/linux-headers-4.3.0-0.bpo.1-common/include/linux/time.h
linux-headers-4.3.0-0.bpo.1-common: /usr/src/linux-headers-4.3.0-0.bpo.1-common/include/uapi/linux/time.h
linux-libc-dev: /usr/include/linux/time.h
lv2-dev: /usr/lib/lv2/time.lv2/time.h
mingw-w64-common: /usr/share/mingw-w64/include/sys/time.h
mingw-w64-common: /usr/share/mingw-w64/include/time.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sys/time.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/time.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sys/time.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/time.h
musl-dev: /usr/include/x86_64-linux-musl/sys/time.h
musl-dev: /usr/include/x86_64-linux-musl/time.h
postgresql-server-dev-9.4: /usr/include/postgresql/9.4/server/port/win32_msvc/sys/time.h
python-pycparser: /usr/share/python-pycparser/fake_libc_include/time.h
python3-pycparser: /usr/share/python3-pycparser/fake_libc_include/time.h
samba-dev: /usr/include/samba-4.0/util/time.h
sdcc-libraries: /usr/share/sdcc/include/time.h
sphinxtrain: /usr/include/sphinxtrain/time.h
virtualbox-4.3: /usr/share/virtualbox/src/vboxhost/vboxdrv/include/internal/time.h
virtualbox-4.3: /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/time.h
virtualbox-4.3: /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/time.h
virtualbox-4.3: /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/time.h
virtualbox-4.3: /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/time.h
virtualbox-5.0: /usr/share/virtualbox/src/vboxhost/vboxdrv/include/internal/time.h
virtualbox-5.0: /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/time.h
virtualbox-5.0: /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/time.h
virtualbox-5.0: /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/time.h
virtualbox-5.0: /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/time.h
virtualbox-dkms: /usr/src/virtualbox-4.3.18/include/internal/time.h
virtualbox-dkms: /usr/src/virtualbox-4.3.18/include/iprt/time.h
virtualbox-dkms: /usr/src/virtualbox-5.0.10/include/internal/time.h
virtualbox-dkms: /usr/src/virtualbox-5.0.10/include/iprt/time.h
virtualbox-guest-dkms: /usr/src/virtualbox-guest-4.3.18/include/internal/time.h
virtualbox-guest-dkms: /usr/src/virtualbox-guest-4.3.18/include/iprt/time.h
virtualbox-guest-dkms: /usr/src/virtualbox-guest-5.0.10/include/internal/time.h
virtualbox-guest-dkms: /usr/src/virtualbox-guest-5.0.10/include/iprt/time.h
wx3.0-headers: /usr/include/wx-3.0/wx/time.h


----------------------------------------------------------------------------------------------------------------
http://24.media.tumblr.com/tumblr_m62bwpSi291qdlh1io1_250.gif

# apt-get purge systemd

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden



4. Re: Erro ao incluir o Header <stdlib.h> [RESOLVIDO]

Jefferson Henrique dos Santos e Silva
jefferson0henry

(usa Ubuntu)

Enviado em 12/01/2016 - 19:01h

Muito Obriga a quem ao menos tentou ajudar consegui resolver o problema.
Bom o caminho de onde estava o bendito time.h

/usr/include/i386-linux-gnu/sys

copiei via terminal e colei em
/usr/include e nao tive mais problema algum para compilar e executar.

Muito obrigado comunidadee.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts